3 ms·
Oh yeah, WebRTC! I forgot that one. I wrote a little multiplayer hovercraft racing game using WebRTC via peer.js last year. Super fun to explore programming net
by errantspark 10y ago
Oh yeah, WebRTC! I forgot that one. I wrote a little multiplayer hovercraft racing game using WebRTC via peer.js last year. Super fun to explore programming networked systems in js.
- Already__Taken 10y agoIs there any way to do this without a central server coordinating the peer connections? I'd love to host something off a static site but I've not figured anything out yet.
- stymaar 10y agoYou need something for the signaling part (sending the WebRTC offer, answer and ICE candidates to establish the connection). It's not necessarily a «central server», if you can convince you users to send each other the info text-encoded via Facebook or any messaging system, it will technically work (but it won't be really ergonomic for you users ;). I wonder if some people provide a SaaS solution for webRTC signaling. Quick survey: would you be willing to pay for it ?
- Already__Taken 10y agoMy specific thing was somebody asked for a demo of a heatmap, I knocked up a page that heat mapped the pointer and wanted every user to aggregate to the map. So no for such a demo I probably wouldn't be coughing up.
- stymaar 10y agoFor a demo you can just code a 20-lines signaling server using websocket with nodejs or anything.