Good day,
I was playing with the example found here on SO: PHP Socket Server vs node.js: Web Chat.
Using gMUD (a telnet-like client) to connect to my server, I can't seem to be able to detect when the client disconnect from the server.
Here is the two events I'm using:
socket.on('end', function() {
console.log('end');
});
socket.on('error', function() {
console.log('error');
});
To be honest, I thought the error event could do it. Is there any other events I'm actually missing?