You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
socket.on('close', function() {
console.log('Client> socket closed');
});
`
Above codes, just called 'close' on server-side. We expected to call both server-side and client-side.
The text was updated successfully, but these errors were encountered:
`server.on('connection',``` function(socket) {
console.log('Server> a client connected');
socket.on('close', function() {
console.log('Server> a client disconnected');
});
socket.destroy();
});
var socket = new net.Socket();
socket.connect(1234, "127.0.0.1", function(status) {
});
socket.on('close', function() {
console.log('Client> socket closed');
});
`
Above codes, just called 'close' on server-side.
We expected to call both server-side and client-side.
The text was updated successfully, but these errors were encountered: