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

Add the hasListeners method to client socket. #296

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

Pringels
Copy link

@Pringels Pringels commented Apr 1, 2020

Fixes: #295

@Pringels
Copy link
Author

@thoov apologies for the direct ping, but I would love to get this merged :)

@Atrue
Copy link
Collaborator

Atrue commented Sep 28, 2021

@Pringels What's the use case of having these methods?
Native WebSocket client and server implementation don't have these methods

@Pringels
Copy link
Author

@Atrue this change simply extends the already existing limited socket.io support, not Native WebSockets.

src/event/target.js Outdated Show resolved Hide resolved
@Atrue
Copy link
Collaborator

Atrue commented Sep 29, 2021

@Pringels Please use yarn to install packages and make sure you don't have any updated lock files. Also, please rebase and fixup this PR to have only 1 commit

@Pringels Pringels force-pushed the socket-has-listeners-method branch from 99c14b0 to 86aa6b0 Compare September 30, 2021 09:06
@Pringels Pringels force-pushed the socket-has-listeners-method branch from 86aa6b0 to 515167c Compare September 30, 2021 09:10
@Pringels
Copy link
Author

@Atrue please take another look. I've also updated the off() method to match the Emitter class as described here: https://socket.io/docs/v4/client-api/#socketoneventname-callback

@Atrue Atrue merged commit 3a0e905 into thoov:master Sep 30, 2021
@Pringels Pringels deleted the socket-has-listeners-method branch September 30, 2021 12:02
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 this pull request may close these issues.

Client socket doesn't have hasListeners method
2 participants