Is there a way to detect when a client disconnect from the server side?
app.js
ss.event.on("close",function(session){
console.log(client disconnected); });
thanks
Check these two:
req.on("close", function() {
// request closed unexpectedly
});
req.on("end", function() {
// request ended normally
}):