ClientWebSocketOptions::AddSubProtocol Method (String^)

.NET Framework (current version)
 

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

Namespace:   System.Net.WebSockets
Assembly:  System (in System.dll)

public:
void AddSubProtocol(
	String^ subProtocol
)

Parameters

subProtocol
Type: System::String^

The WebSocket sub-protocol to add.

.NET Framework
Available since 4.5
Return to top
Show: