WebSocketMiddleware Class
Definition
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
public class WebSocketMiddleware
type WebSocketMiddleware = class
Public Class WebSocketMiddleware
- Inheritance
-
WebSocketMiddleware
Constructors
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>) | |
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory) |
Creates a new instance of the WebSocketMiddleware. |
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for