TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Thoughts on WebRTC Data Channels?

3 pointsby commentionover 5 years ago
I&#x27;m web game developer. I&#x27;ve been developing my games with Web Socket technology. I was planning to try WebRTC at some point and I already started to develop a game with it. It&#x27;s a fast-paced FPS shooter. I need low latency values. So I thought WebRTC might be good choice. According to Can I use website, it&#x27;s only not available on IE and Edge in major web browsers.<p>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&#x27;s powerful.

1 comment

opendomainover 5 years ago
WebRTC 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.<p>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.<p>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.
评论 #21139895 未加载