Re:App Should Have Been a Website (and Probably Your Game Too)
by chris_pie on Tuesday December 31, 2024 @07:32PM
(#42562972)
Support is getting there on the browsers' side, but you need a backend that supports HTTP3+WebTransport - barely any out there
[ Parent
| on HN ]
Re:App Should Have Been a Website (and Probably Your Game Too)
by thot_experiment on Tuesday December 31, 2024 @08:23PM
(#42563204)
Yup, as I have found out over the last 5 hours. I managed to get a handshake but it's nowhere near the convenience of something like WebSockets. The security circus you have to go through to get even a handshake working is absolutely absurd, all sorts of extremely poorly documented certificate requirements and you'll be lucky to get an error message that helps you in any way. I'm getting ready to give up for the day, I will definitely make a top level HN post if I get a solution working and documented.
Meanwhile https://github.com/achingbrain/webtransport-echo-server this is the best we have for a minimal working node example.
Re:App Should Have Been a Website (and Probably Your Game Too)
by chris_pie on Thursday January 02, 2025 @07:22PM
(#42580637)
Surprisingly, socket.io supports WebTransport: https://socket.io/get-started/webtransport
The guys at Colyseus (a JS library for multiplayer games netcode) also added support, in a preview version for now.