Jigsaw-Code / outline-sdk

SDK to build network tools based on Outline components.
https://getoutline.org/for-developers/
Apache License 2.0
218 stars 25 forks source link

Replace Websocket library #236

Open fortuna opened 1 month ago

fortuna commented 1 month ago

We are using https://pkg.go.dev/golang.org/x/net/websocket, which is poorly maintained.

Better options are:

Ideally we would be able to support Websockets over h2 and even h3, for multiplexing and better performance.

However, it's not clear any implementation can support it yet, given limitations in the http2 support in Go:

fortuna commented 1 month ago

Oh, neither of the libraries support h2 :-/

fortuna commented 1 month ago

We can consider adding h3 support with quic-go: https://quic-go.net/docs/webtransport/