ClientWebSocketOptions.AddSubProtocol Method

.NET Framework 4.5

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

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft