Skip to content

WebSocketClientOptions

Summary

Websocket client options.

Signature

1
public class WebSocketClientOptions

Namespace

cAlgo.API

Properties

Timeout

Summary

Gets or sets the operation timeout.Default value is set to 60 seconds.

Signature

1
public TimeSpan Timeout {get; set;}

Return Value

TimeSpan

SubProtocols

Summary

Gets or sets sub-protocols to be negotiated during the WebSocket connection handshake.

Signature

1
public IEnumerable<string> SubProtocols {get; set;}

Return Value

IEnumerable

KeepAliveInterval

Summary

Gets or sets the WebSocket protocol keep-alive interval.Default value is set to 30 seconds.

Signature

1
public TimeSpan KeepAliveInterval {get; set;}

Return Value

TimeSpan

UseDefaultCredentials

Summary

Gets or sets a Boolean value that indicates if default credentials should be used during WebSocket handshake.Default value is false.

Signature

1
public bool UseDefaultCredentials {get; set;}

Return Value

bool