WebSocketMiddleware Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables accepting WebSocket requests by adding a IHttpWebSocketFeature to the HttpContext if the request is a valid WebSocket request.
public ref class WebSocketMiddleware
C#
public class WebSocketMiddleware
type WebSocketMiddleware = class
Public Class WebSocketMiddleware
- Inheritance
-
WebSocketMiddleware
Web |
Creates a new instance of the WebSocketMiddleware. |
Web |
Invoke(Http |
Processes a request to determine if it is a WebSocket request, and if so, sets the IHttpWebSocketFeature on the Features. |
Product | Versions |
---|---|
ASP.NET Core | 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |