WebSocketManager.AcceptWebSocketAsync Method
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.
Overloads
AcceptWebSocketAsync() |
Transitions the request to a WebSocket connection. |
AcceptWebSocketAsync(WebSocketAcceptContext) | |
AcceptWebSocketAsync(String) |
Transitions the request to a WebSocket connection using the specified sub-protocol. |
AcceptWebSocketAsync()
- Source:
- WebSocketManager.cs
- Source:
- WebSocketManager.cs
- Source:
- WebSocketManager.cs
Transitions the request to a WebSocket connection.
public:
virtual System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync();
public virtual System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync ();
abstract member AcceptWebSocketAsync : unit -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
override this.AcceptWebSocketAsync : unit -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
Public Overridable Function AcceptWebSocketAsync () As Task(Of WebSocket)
Returns
A task representing the completion of the transition.
Applies to
AcceptWebSocketAsync(WebSocketAcceptContext)
- Source:
- WebSocketManager.cs
public virtual System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (Microsoft.AspNetCore.Http.WebSocketAcceptContext acceptContext);
abstract member AcceptWebSocketAsync : Microsoft.AspNetCore.Http.WebSocketAcceptContext -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
override this.AcceptWebSocketAsync : Microsoft.AspNetCore.Http.WebSocketAcceptContext -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
Public Overridable Function AcceptWebSocketAsync (acceptContext As WebSocketAcceptContext) As Task(Of WebSocket)
Parameters
- acceptContext
- WebSocketAcceptContext
Returns
Applies to
AcceptWebSocketAsync(String)
- Source:
- WebSocketManager.cs
- Source:
- WebSocketManager.cs
- Source:
- WebSocketManager.cs
Transitions the request to a WebSocket connection using the specified sub-protocol.
public:
abstract System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync(System::String ^ subProtocol);
public abstract System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (string subProtocol);
public abstract System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (string? subProtocol);
abstract member AcceptWebSocketAsync : string -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
Public MustOverride Function AcceptWebSocketAsync (subProtocol As String) As Task(Of WebSocket)
Parameters
- subProtocol
- String
The sub-protocol to use.
Returns
A task representing the completion of the transition.