I just wanted to share a library I built a while ago. I read a lot, even in newer posts, that networking over UDP is not possible in the browser. But it is possible. WebRTC’s DataChannel can send unordered and unreliable message via UDP (SCTP). But WebRTC does not only work in browsers. It works, amongst other things, on Node.js. So if you want to network your multiplayer game over UPD, use WebRTC on the browser and on node.js.
That’s exactly what my library does. Sending client/server messages via UDP between browser and node.js. Take a look! I’m sure some of you can use it
Also take a look at my snapshot-interpolation library for easily adding Snapshot Interpolation (also called Entity Interpolation or Buffer Interpolation) to your Games.
- Snapshot Interpolation
- Client-Side Prediction and Server Reconciliation
- Lag Compensation