다음을 통해 공유


WebSocketManager.AcceptWebSocketAsync 메서드

정의

오버로드

AcceptWebSocketAsync()

요청을 WebSocket 연결로 전환합니다.

AcceptWebSocketAsync(WebSocketAcceptContext)
AcceptWebSocketAsync(String)

지정된 하위 프로토콜을 사용하여 요청을 WebSocket 연결로 전환합니다.

AcceptWebSocketAsync()

Source:
WebSocketManager.cs
Source:
WebSocketManager.cs
Source:
WebSocketManager.cs

요청을 WebSocket 연결로 전환합니다.

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)

반환

전환 완료를 나타내는 작업입니다.

적용 대상

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)

매개 변수

acceptContext
WebSocketAcceptContext

반환

적용 대상

AcceptWebSocketAsync(String)

Source:
WebSocketManager.cs
Source:
WebSocketManager.cs
Source:
WebSocketManager.cs

지정된 하위 프로토콜을 사용하여 요청을 WebSocket 연결로 전환합니다.

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)

매개 변수

subProtocol
String

사용할 하위 프로토콜입니다.

반환

전환 완료를 나타내는 작업입니다.

적용 대상