AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Doc HTTP/2 WebSockets support

Open Tratcher opened this issue 3 years ago • 0 comments

This is now available for Kestrel in 7.0-preview6. Notes from the blog post:

WebSockets were originally designed for HTTP/1.1 but have since been adapted to work over HTTP/2. Using WebSockets over HTTP/2 lets you take advantage of new features like header compression and multiplexing that reduce the time and resources needed when making multiple requests to the server. That support is now available in Kestrel on all HTTP/2 enabled platforms. The version negotiation is automatic in browsers and Kestrel so no new APIs are needed, you can follow the existing samples. Note HTTP/2 WebSockets use CONNECT requests rather than GET, so your routes and controllers may need updating. Chrome and Edge have HTTP/2 WebSockets enabled by default and you can enable it in FireFox on the about:config page with the network.http.spdy.websockets flag. SignalR server and the browser JavaScript client also support it. Support is coming to ClientWebSocket and YARP soon.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Tratcher avatar Jul 08 '22 17:07 Tratcher