Node.js and Socket.io goes into sleep.
Hey, I am new to Linux and heavy website setups in general (by heavy I mean everything manually, prior to this I just used Wamp or some shared hosting which had cp etc..)
I created a mini chat using Node.js and Socket.io, when I launch chat server from terminal it works fine, after I close terminal and leave website, it goes into offline mode after some time, as in - I cannot access page anymore.
How do I keep connection/service - alive/running?
Oh and second question while I am at it:
Is it possible to log all messages going through socket into database? (in my case - chat messages). Thanks.