ServerMessageWebSocketInformation.Protocol Property

Definition

Gets the WebSocket sub-protocol negotiated with the server during WebSocket handshake on a ServerMessageWebSocket object.

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

Property Value

String

Platform::String

winrt::hstring

The sub-protocol negotiated with the server during the WebSocket handshake.

Windows requirements

App capabilities
internetClientServer privateNetworkClientServer

Applies to