3 ms·
If I want to add WebRTC capabilities to an existing server, what's the simplest way of doing that? This is for a game, all I need is an unreliable RTCDataChanne
by echeese 6y ago
If I want to add WebRTC capabilities to an existing server, what's the simplest way of doing that? This is for a game, all I need is an unreliable RTCDataChannel
- okay1000 6y agoI used simple-peer [1] for sending coordinates between clients in a canvas painting game [2]. [1] https://github.com/feross/simple-peer https://github.com/feross/simple-peer [2] https://github.com/justo-rivera/dibujio-client https://github.com/justo-rivera/dibujio-client Ps. Be sure to use a turn server besides a stun one, that was a big headache to get it working on mobile data
- jtsiskin 6y agoAwesome!! I’m glad people are using the data channel for games; I always see people say “well we could have better networking but browsers only support TCP sockets” but that is not the case. The most complicated bit is you will need TURN servers for some symmetric NAT cases; either host your own or use something like https://xirsys.com/ https://xirsys.com/
- Sean-Der 6y agoWhat language is the server in? You just need a WebRTC implementation and you should be good to go!