fastwebsockets icon indicating copy to clipboard operation
fastwebsockets copied to clipboard

Support HTTP2

Open c-antin opened this issue 2 years ago • 2 comments

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 avatar Jan 06 '24 12:01 c-antin

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

c-antin avatar Jan 06 '24 13:01 c-antin

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.

littledivy avatar May 27 '24 06:05 littledivy