I'm using
socket.io 0.7.7 and removeListener() on a client-side socket instance doesn't appear to be working for me. The following adds a listener which responds properly to events emitted from the server, as expected;
socket.addListener('test', function(data) {
console.dir(data);
});
However any attempt to remove the listener doesn't appear to work;
socket.removeListener('test', function(data) {
console.dir(data);
});
It doesn't produce an error and the client will continue to respond (according to the listener callback) to server-side events of the same name. Am I using it incorrectly?