ClientWebSocketOptions.AddSubProtocol(String) Method

Definition

Adds a sub-protocol to be negotiated during the WebSocket connection handshake.

public:
 void AddSubProtocol(System::String ^ subProtocol);
public void AddSubProtocol (string subProtocol);
member this.AddSubProtocol : string -> unit
Public Sub AddSubProtocol (subProtocol As String)

Parameters

subProtocol
String

The WebSocket sub-protocol to add.

Applies to