Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Http.​WebSocketManager

Assembly: Microsoft.AspNetCore.Http.Abstractions

Inheritance: object → WebSocketManager

Manages the establishment of WebSocket connections for a specific HTTP request.

Properties

public bool
IsWebSocketRequest
Gets a value indicating whether the request is a WebSocket establishment request.
WebSocketRequestedProtocols
Gets the list of requested WebSocket sub-protocols.

Methods

AcceptWebSocketAsync​()
Transitions the request to a WebSocket connection.
Returns A task representing the completion of the transition.
AcceptWebSocketAsync​(string subProtocol)
Transitions the request to a WebSocket connection using the specified sub-protocol.
Returns A task representing the completion of the transition.
subProtocol The sub-protocol to use.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object