39
rated 0 times
[
45]
[
6]
/ answers: 1 / hits: 17951
/ 11 Years ago, thu, august 15, 2013, 12:00:00
How do I detect if the server is offline, or for some other reason cannot connect. My code looks something like this.
this.socket = io.connect(connectionInfo, {
reconnect:false
});
It does not throw any error, so a try/catch clause is not working.
More From » node.js