MessageWebSocketInformation.Protocol 속성

정의

MessageWebSocket 개체에서 WebSocket 핸드셰이크 중에 서버와 협상된 WebSocket 하위 프로토콜을 가져옵니다.

public:
 property Platform::String ^ Protocol { Platform::String ^ get(); };
winrt::hstring Protocol();
public string Protocol { get; }
var string = messageWebSocketInformation.protocol;
Public ReadOnly Property Protocol As String

속성 값

String

Platform::String

winrt::hstring

WebSocket 핸드셰이크 중에 서버와 협상된 하위 프로토콜입니다.

구현

설명

WebSocket 클라이언트와 WebSocket 서버는 모두 여러 하위 프로토콜을 지원할 수 있습니다. WebSocket 핸드셰이크 중에 서버는 상호 지원되는 하위 프로토콜에서 하위 프로토콜 중 하나를 선택하고 "Sec-WebSocket-Protocol" 헤더에 회신합니다. Protocol 속성에는 선택한 하위 프로토콜 문자열이 포함됩니다.

MessageWebSocket이 연결되기 전에 이 속성은 null입니다.

적용 대상

추가 정보