socket.io-stream
socket.io-stream copied to clipboard
socket.removeAllListeners() breaks ss(socket)
Currently when you call removeAllListeners on the socket connection that's used by socket.io-stream you break the socket.io-stream insance. Should we overrule the removeAllListeners method and make sure we re-add the socket.io-stream listeners? Something like:
var originalRemoveAllListeners = sio.removeAllListeners;
sio.removeAllListeners = function() {
originalRemoveAllListeners.apply(sio, arguments);
// re-add socket.io listeners
}