I just want to ask, does anyone have any experience with WebRTC data channels at big scale? And should I really use it on my project? I can still go with Websocket, but I really want to try and see if it's powerful.
Thoughts on WebRTC Data Channels?
1–3 of 3 posts
Re: Thoughts on WebRTC Data Channels?
#2The API for WebRTC is similar to WebSocket, so the client side JS should be easy to set up, except for initiating the connection. You will need to setup a STUN and perhaps a TURN server to get everyone to join correctly.
If you are using the WebRTC for voice for the player to hear, you will also need to setup a Media server, probably with SIP.
Re: Thoughts on WebRTC Data Channels?
#3WebRTC is peer to peer This means that if one of your players has a slow connection, then the updates to everyone else may be slow. The API for WebRTC is similar to WebSocket, so the client side JS should be easy to set up, except for initiating the connection. You will need to setup a STUN and perhaps a TURN server to get everyone to join correctly. If you are using the WebRTC for voice for the player to hear, you w…
So even if user has low speed internet connection, we'll see him slow or laggy basically.
There are also some libraries that provides easy-to-use APIs for WebRTC. I'll prefer them in this case.
I really want to use WebRTC. Because this technology looks awesome, especially for lower latency values. I'm just thinking, it can be good choice for that kind of fast-paced game.
I looked up for some examples on web, that uses WebRTC on game, unfortunately couldn't find. So I was thinking, there should be reason for that.