StreamWebSocketControl.NoDelay Property

A value that indicates whether the Nagle algorithm is used on a StreamWebSocket object.

Syntax

public:
property bool NoDelay {
         bool get ();
         void set (bool value);
}  

Property value

Type: bool 

  A value that indicates whether the Nagle algorithm is used on the TCP connection of a StreamWebSocket object.

Remarks

When this property is true, the StreamWebSocket will disable the Nagle algorithm on the TCP connection to reduce the potential delay when sending small messages. When a StreamWebSocket is created, the default value for this property is true.

This property may be set before the StreamWebSocket is connected. After the StreamWebSocket is connected, setting the property will result in an error.

Turning off the Nagle algorithm increases the protocol overhead and should only be used when sending small messages.

This property sets the value of the TCP_NODELAY socket option on the TCP socket used by the StreamWebSocket.

Requirements

Namespace: Windows.Networking.Sockets

Metadata: windows.winmd

See also

Reference

StreamWebSocketControl Class

StreamWebSocketControl Members

Windows.Networking.Sockets Namespace