Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Microsoft.AspNetCore.WebSockets Namespace

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.

Contains a middleware for handling WebSocket traffic.

Classes

Name Description
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.


Feedback

Was this page helpful?