jonvuri / tonlist

Collaborative video / music player
0 stars 0 forks source link

Webrtc signaling server + room param #4

Closed jonvuri closed 5 months ago

jonvuri commented 6 months ago

Add example signaling server from y-webrtc (https://github.com/yjs/y-webrtc, revision https://github.com/yjs/y-webrtc/commit/61676a8187e7bd545fd12d0ad6d85f9299b9c0ac) and use it for the WebrtcProvider / SyncedStore.

Also, add a 'room' query param that changes the room key used for WebrtcProvider, segmenting clients into different groups. For instance, if you load up URL http://localhost:3000/?room=blarg, you will be in room 'blarg', and share state with all users in that room, but not in other rooms.

jonvuri commented 6 months ago

This completes the last checkbox (first one) in https://github.com/jonvuri/tonlist/issues/2