Open jayendra13 opened 7 years ago
You can't do that for now as you don't have access to the original callback
as you can see here
https://github.com/AngularClass/angular-websocket/blob/master/src/angular-websocket.js#L122-L129
The callbacks are part of the internal library and it's not wise to reference them
The documentation doesn't suggest any way to remove callback from socket. We can access the raw websocket object from property and call
removeEventListener
method of it, but that is not working for me.Can anyone help me here ?