Just for fun and learning.
-
Get Go 1.18 (webtransport implementation doesn't compile on 1.19 or newer at the moment)
-
Install dependencies
go mod download
-
Generate some local certificates with mkcert
mkcert -install mkcert localhost 127.0.0.1 ::1
go run .
You can use websocat for some chatting:
websocat --exit-on-eof ws://127.0.0.1:8090/chat
Open http://localhost:8090/ in a modern browser* and start chatting.
* Currently Chrome 97+, Firefox 114+, and Edge 98+ supports WebTransport. See https://caniuse.com/webtransport for the up to date list of supported browsers.
Of course you can chat via both protocol at the same time!