angular2-websocket
angular2-websocket copied to clipboard
Method(s) to remove listeners
Would be useful to be able to remove listeners after they've been added. For instance, I have a use case where, depending on some UI state, I may or may not want an onMessage listener. I can handle this currently by setting a flag in the onMessage callback in order to ignore the message, but would be nice to be able to remove it altogether.