Microsoft.AspNetCore.WebSockets Namespace

Contains a middleware for handling WebSocket traffic.

Classes

ExtendedWebSocketAcceptContext

Extends the WebSocketAcceptContext class with additional properties.

WebSocketMiddleware

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

WebSocketsDependencyInjectionExtensions

Extension method for IServiceCollection to add WebSockets configuration.

Remarks

For more information about using WebSockets, see WebSockets support in ASP.NET Core.