How can i detect server status ?
var socket= io.connect('http://nodeserver.com:3000');
Here is my code. If nodeserver.com:3000 is down, how can i validate server down or up ?
I tried connect_failed, error events but doesn't work.
How can i detect server status ?
var socket= io.connect('http://nodeserver.com:3000');
Here is my code. If nodeserver.com:3000 is down, how can i validate server down or up ?
I tried connect_failed, error events but doesn't work.
have you tried doing it like this?
in other words, use the connect_error instead of the connect_failed event?
for checking "disconect" of a socket you can you this code :