StreamWebSocket.Control | control property

Applies to Windows and Windows Phone

Gets socket control data on a StreamWebSocket object.

Syntax


var control = streamWebSocket.control;

Property value

Type: StreamWebSocketControl

Socket control data on a StreamWebSocket object.

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

See also

Other resources
How to use advanced WebSocket controls
NoDelay
OutboundBufferSizeInBytes
ProxyCredential
ServerCredential
StreamWebSocket
StreamWebSocketControl
SupportedProtocols

 

 

Show:
© 2014 Microsoft