QUIC in the browser

Github

This demo runs the quinn QUIC implementation compiled to WASM in the browser. It forwards UDP packets over a WebSocket connection to a relay server, which then sends them out to the actual destination. All packets are end-to-end encrpyted between browser and the destination QUIC server; the relay cannot read anything.

Caveats:
This demo only allows 127.0.0.1:4000 as QUIC host to prevent abuse! It runs the QUIC echo server from the repo example there.

Open the browser console for detailed logs!

Output: