PR proposal - support rooms #1343
benallfree
started this conversation in
Ideas & Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I see several requests for rooms (#1134 #1237 #1083). I would like to propose a simple approach:
Client changes
Support a
PeerOptions.roomfield. When present, it will send an additional querystring param/:key/id?room=<room>orX-PeerJS-Room: <room>header.Server changes:
Look for a querystring
roomparam on/:key/id?room=<room>. Store room-specific peers in a separate map.Modify
allow_discovery: "room"to allow discovery only if aroomquerystring param is specifiedThoughts? Happy to send a PR.
Beta Was this translation helpful? Give feedback.
All reactions