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

feat: Expose addEventListner to allow for proper use of the underlying websocket #1305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TesDevelopment
Copy link

Been working on a project recently and I noticed that there is no safe way to listen to the underlying websocket, I assumed this was because you weren't intended to but it looks like PeerServer actively supports sending and listening to the websocket so this seems like an oversight to me.

@TesDevelopment TesDevelopment changed the title Expose addEventListner to allow for proper use of the underlying websocket feat: Expose addEventListner to allow for proper use of the underlying websocket Oct 18, 2024
Copy link
Contributor

@WofWca WofWca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose a removeEventListener would also make sense. But at this point why not just make _socket public instead,

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.

2 participants