h3 icon indicating copy to clipboard operation
h3 copied to clipboard

Add WebSocket :protocol extension per RFC 9220.

Open vi opened this issue 1 year ago • 5 comments

Attempt to add WebSocket support to h3.

I don't know any server that supports RFC 9220, so it is untested.

vi avatar Apr 13 '24 21:04 vi

Hi. you can add some unit test. support rfc9220 server: https://github.com/ngtcp2/nghttp3

pythonwood avatar Dec 13 '24 09:12 pythonwood

What should the unit test test? as_str / from_str implementations?

vi avatar Dec 13 '24 11:12 vi

Other implementation of RFC9220:

https://github.com/aiortc/aioquic

ararog avatar Oct 29 '25 16:10 ararog

Hi. you can add some unit test. support rfc9220 server: https://github.com/ngtcp2/nghttp3

It is appropriate to add a heavy dev-dependency for a such a trivial change?

vi avatar Oct 31 '25 10:10 vi

Based on what I see on other implementations of websocket, h3 should only provide the minimum at http level to be able to establish websockets connection, which is, in short, the ability to set CONNECT pseudo-headers, and maybe send the settings frames, besides that, looks like the remaining parts can still take advantage of existing frame parsing libraries.

ararog avatar Oct 31 '25 11:10 ararog