Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client socket doesn't have hasListeners method #295

Closed
Pringels opened this issue Apr 1, 2020 · 1 comment · Fixed by #296
Closed

Client socket doesn't have hasListeners method #295

Pringels opened this issue Apr 1, 2020 · 1 comment · Fixed by #296

Comments

@Pringels
Copy link

Pringels commented Apr 1, 2020

Great work on this library. It saved my skin when I discovered that https://miragejs.com/ doesn't support websockets yet :)

This Issue is similar in nature to #170

According to the socket.io docs, client sockets should be able to query if a given event has actively registered listeners:

The socket actually inherits every method of the Emitter class, like hasListeners, once or off (to remove an event listener).

@Pringels
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant