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.
public
System.​Collections.​Generic.​IList<​string>
WebSocketRequestedProtocols
Gets the list of requested WebSocket sub-protocols.
Methods
public
System.​Threading.​Tasks.​Task<​System.​Net.​WebSockets.​WebSocket>
AcceptWebSocketAsync​()
Transitions the request to a WebSocket connection.
Returns A task representing the completion of the transition.
public
System.​Threading.​Tasks.​Task<​System.​Net.​WebSockets.​WebSocket>
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
System.​Threading.​Tasks.​Task<​System.​Net.​WebSockets.​WebSocket>
AcceptWebSocketAsync​(WebSocketAcceptContext acceptContext)
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object