WebSocketOptions Class

Definition

Options used by the WebSockets transport to modify the transports behavior.

public ref class WebSocketOptions
public class WebSocketOptions
type WebSocketOptions = class
Public Class WebSocketOptions
Inheritance
WebSocketOptions

Constructors

WebSocketOptions()

Properties

CloseTimeout

Gets or sets the amount of time the WebSocket transport will wait for a graceful close before starting an ungraceful close.

SubProtocolSelector

Gets or sets a delegate that will be called when a new WebSocket is established to select the value for the 'Sec-WebSocket-Protocol' response header. The delegate will be called with a list of the protocols provided by the client in the 'Sec-WebSocket-Protocol' request header.

Applies to