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

send message to a specific peer #41

Closed
evil1morty opened this issue May 30, 2024 · 1 comment
Closed

send message to a specific peer #41

evil1morty opened this issue May 30, 2024 · 1 comment

Comments

@evil1morty
Copy link

Hello,
I'm using the Cloudflare workers' adapter
how can I send a message to a specific peer
also, how can I close a peer connection
Thank you.

@pi0
Copy link
Member

pi0 commented Aug 6, 2024

Hi. Based on #60 (not releated yet) you can access ws.peers to find your desired peer(s) based on id or URL or anything else and send message to them or close them also peer.close / peer.terminate will be available in next release (#36)

If you had a chance to test after release, please let me know if had any issues , questions or feedbacks.

@pi0 pi0 closed this as completed Aug 6, 2024
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

No branches or pull requests

2 participants