StreamWebSocket.Control StreamWebSocket.Control StreamWebSocket.Control StreamWebSocket.Control StreamWebSocket.Control Property

Definition

Gets socket control data on a StreamWebSocket object.

public : StreamWebSocketControl Control { get; }
StreamWebSocketControl Control();
public StreamWebSocketControl Control { get; }
Public ReadOnly Property Control As StreamWebSocketControl
var streamWebSocketControl = streamWebSocket.control;

Property Value

Remarks

The Control property gets the StreamWebSocketControl instance associated with a StreamWebSocket object.

A StreamWebSocketControl object is automatically created with the parent StreamWebSocket object. The StreamWebSocketControl instance can then be used to get or set control data used by the StreamWebSocket object. These properties on the MessageWebSocketControl instance include the following:

Any changes to the StreamWebSocketControl property values must be set before the StreamWebSocket is connected. As a result if you need to make changes to the NoDelay, OutboundBufferSizeInBytes, ProxyCredential, ServerCredential, or SupportedProtocols properties, then these changes must occur before a successful call to the ConnectAsync method on the StreamWebSocket.

See also