Hacker News new | ask | show | jobs
by sebular 1457 days ago
I was excited by Hathora and sat down to integrate it into a project I’m working on, only to find that it only supports Websockets.

Given the inherent latency of using TCP-based messaging, it feels odd to advertise this as being good for real time games.

I see that UDP is on the roadmap, so that’s good. Will you support WebRTC for building low latency real time gaming experiences on the web?

2 comments

Hathora actually supports raw TCP connections in addition to Websockets, and we're very close to shipping raw UDP support as well!

For the web, we're deciding between using WebRTC or leapfrogging straight to WebTransport[0]. Either solution would be a thin layer on top of the raw UDP work

[0] https://web.dev/webtransport/

We need websockets over UDP. Websockets over TCP obsoleted TCP for me. Websockets over UDP would obsolete UDP for me.