In socket.io, when the client is disconnected from the server the disconnect event is fired in the server for the socket. Do I have to removeAllEventListeners
After digging through the socket.io source, the socket object (which is the EventEmitter) is deleted when the client disconnects so it is not necessary to manually call removeAllListeners.