Would webtransport be a possible extension for defold?
Similar to how theres the websocket extension: GitHub - defold/extension-websocket: A native websocket implementation for Defold · GitHub
There are a couple of different implementations that could be used as a basis, and it’s supported in all browsers now:
what’s nice for this over websocket for gamedev is that defold supports unreliable messages (a la UDP)
EDIT: I did find a webtransport extension, but it seems empty for now: GitHub - defold/extension-webtransport: WebTransport implementation for Defold · GitHub