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
thanks @mkozjak for quick response.
I tried this before, but is it possible to do some cleanup job after all sockets disconnect from specific namespace?
server.on("connection",(socket,request)=>{socket.on("close",()=>{constu=url.parse(request.url,true);constns=u.pathname;console.log('client.size: ',server.namespaces[ns].clients.size);// this won't be 0if(server.namespaces[ns].clients.size===0){console.log('clean up');}})});
Great thanks to this nice library.
I need to do some cleanup job after client disconnect from server. Is it possible to emit an event after client disconnect?
or
The text was updated successfully, but these errors were encountered: