WebSocketMiddleware Class

Definition

Enables accepting WebSocket requests by adding a IHttpWebSocketFeature to the HttpContext if the request is a valid WebSocket request.

public ref class WebSocketMiddleware
public class WebSocketMiddleware
type WebSocketMiddleware = class
Public Class WebSocketMiddleware
Inheritance
WebSocketMiddleware

Constructors

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

Creates a new instance of the WebSocketMiddleware.

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)

Methods

Invoke(HttpContext)

Processes a request to determine if it is a WebSocket request, and if so, sets the IHttpWebSocketFeature on the Features.

Applies to