WebSocket signaling server for y-webrtc
A WebSocket signaling server for y-webrtc peers.
This WebSocket signaling server listens for messages sent by y-webrtc implementations responding to subscribe
, unsubscribe
, publish
, and ping
messages from peers.
To get a local copy up and running follow these simple steps.
- Clone repository
git clone [email protected]:ferviddigital/y-webrtc-signaler.git
- Install NPM packages
cd y-webrtc-signaler
npm install
npm run dev
const provider = new WebrtcProvider('your-room-name', ydoc, {
//...
signaling: [
'ws://localhost:8787'
]
});
You can deploy this code on:
- Make easily deployable to cloud services
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
y-webrtc-signaler is licensed under the MIT License.
Roy McKenzie - [email protected]