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: universal access to all peers #60

Merged
merged 4 commits into from
Aug 6, 2024
Merged

feat: universal access to all peers #60

merged 4 commits into from
Aug 6, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Aug 6, 2024

For real-world applications, more than simple pub/sub, access to all peers is often required for cross-communication.

This PR adds this possibility to natively track connected peers in all adapters (except cloudflare-durable which tracks via connected web sockets)

Peers are accessible both via global ws.peers and from each peer via peer.peers (related to #21, #49)

@pi0 pi0 self-assigned this Aug 6, 2024
Copy link

cloudflare-workers-and-pages bot commented Aug 6, 2024

Deploying crossws with  Cloudflare Pages  Cloudflare Pages

Latest commit: a665d1e
Status:⚡️  Build in progress...

View logs

@pi0 pi0 merged commit 7fa9976 into main Aug 6, 2024
2 of 3 checks passed
@pi0 pi0 deleted the feat/get-peers branch August 6, 2024 12:35
This was referenced 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

Successfully merging this pull request may close these issues.

1 participant