yjs / y-webrtc

WebRTC Connector for Yjs
MIT License
458 stars 111 forks source link

Add simple-peer config #8

Closed holtwick closed 4 years ago

holtwick commented 4 years ago

It would be nice to have a way to set the config for the peers like custom STUN and TURN servers. I added peerSettings here to y-webrtc.js to pass it through to Peer:

https://github.com/holtwick/peer2school/blob/develop/src/lib/y-webrtc.js

dmonad commented 4 years ago

Done. I implemented peerOpts and updated the README.

holtwick commented 4 years ago

Thanks!