denoland / fastwebsockets

A fast RFC6455 WebSocket implementation
https://docs.rs/fastwebsockets/
Apache License 2.0
845 stars 61 forks source link

Support HTTP2 #62

Open c-antin opened 9 months ago

c-antin commented 9 months ago

Any plans on supporting an HTTP2 connection especially for the client?

See https://deno.com/blog/v1.38#websockets-improvements

Use case: rust client connecting to deno server over h2

c-antin commented 9 months ago

An alternative would be deno gRPC server support + rust tonic client for bidirectional binary streams. See https://github.com/denoland/deno/discussions/17308#discussioncomment-5623819

littledivy commented 4 months ago

You can perform the handshake yourself using h2 and pass the stream to WebSocket::after_handshake. This is how it's implemented in Deno right now.