You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theonMessage
callback in order to ignore the message, but would be nice to be able to remove it altogether.The text was updated successfully, but these errors were encountered: