Socket.io doesn't close connections when users close browser
<p>I have a socket server (socket.io + nodejs) and a socket client (socket.io). The problem is that client connections remain opened also when users close the browser, creating an high number of dead connections.</p>

<p>For example, when I open the browser and run this command "lsof -i -n -P | grep node | grep ‘my ip address’" I have one connection. When I close the browser and run again that command, the connection remains opened.</p>

<p>Thanks a lot everyone wants to help me!</p>