angular2-websocket icon indicating copy to clipboard operation
angular2-websocket copied to clipboard

Method(s) to remove listeners

Open bmayen opened this issue 8 years ago • 0 comments

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.

bmayen avatar May 15 '17 19:05 bmayen