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>, 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.  |