How can i detect server status ?
var socket= io.connect(\'http://nodeserver.com:3000\');
Here is my code. If nodeserver.com:3000
for checking "disconect" of a socket you can you this code :
io.socket.on('connect', function(){ console.log('connected to server ...'); }); io.socket.on('disconnect', function(){ console.log('Lost connection to server'); });