exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
994 stars 117 forks source link

WebRTC alternatives? #221

Open avaer opened 6 years ago

avaer commented 6 years ago

A common thread for people doing game-y/xr-y Javascript is that WebRTC has problems. Smarter people than I have done writeups.

(it is also a slight technical problem for us, but that's beside the point)

Problem

While the "Web" at large is beholden to what consortiums hand down at the pace of RFC, Exokit by design is not.

There is demand for better realtime APIs, and they have already been hacked in to the codebase for that reason. It's easy to window.udp = require('net'), even if it's not right.

But if this is something we want to public sites use we would need a standard for it -- if only because if everyone hacks it in it otherwise has a high chance of being broken by a version update.

Solutions

I haven't thought about this enough to have a strong opinion; just coalescing the discussion.

hackergrrl commented 6 years ago

A team at Mozilla has been making libdweb

avaer commented 6 years ago

Thanks, looks like a great direction to lean towards.

Proposed API shapes

HeadClot commented 6 years ago

Look into netcode io https://github.com/RedpointGames/netcode.io-browser

sidequestlegend commented 5 years ago

Vivox? - www.vivox.com