TsgcWebSocketClient › Properties

TsgcWebSocketClient Properties

Published properties grouped by purpose, followed by the full alphabetical list.

Connection

NameDescription
ActiveOpens or closes the WebSocket connection to the configured server.
HostIP address or DNS name of the WebSocket server the client will connect to.
PortTCP port used to connect to the WebSocket server.
URLWrite-only shortcut that populates Host, Port, TLS and parameters from a single WebSocket URL.
TLSEnables a secure TLS/SSL connection to the WebSocket server.
IPVersionSelects the IP protocol version (IPv4 or IPv6) used for the TCP connection.

Timeouts

NameDescription
ConnectTimeoutMaximum time in milliseconds the client waits for the TCP connection to be established.
ReadTimeoutMaximum time in milliseconds the client waits for incoming data before raising a read timeout.
WriteTimeoutMaximum duration in milliseconds for sending data to the other peer.

Reliability

NameDescription
HeartBeatSends periodic WebSocket ping frames to keep the connection alive.
WatchDogAutomatically reconnects to the server after an unexpected disconnection.

Security

NameDescription
ProxyRoutes the WebSocket connection through an HTTP or SOCKS proxy server.
AuthenticationConfigures the credentials and scheme used to authenticate the WebSocket handshake.
TLSOptionsConfigures certificates, TLS version, ALPN, IOHandler and other secure-connection details used when TLS is enabled.

Messaging

NameDescription
QueueOptionsQueues outgoing Text, Binary and Ping messages so they are serialised on the connection thread.

Diagnostics

NameDescription
NotifyEventsControls how WebSocket events are dispatched to the main thread.
LogFilePersists inbound and outbound socket traffic to a file, useful for debugging the wire protocol.
VersionRead-only string that returns the current sgcWebSockets library version.

Advanced

NameDescription
ExtensionsEnables WebSocket protocol extensions such as per-message deflate compression.
OptionsCustomizes handshake headers and fine-tunes client behaviour such as fragmentation and UTF-8 validation.
SpecificationsSelects which WebSocket wire specifications the client is allowed to negotiate.
ThrottleLimits the number of bits per second sent or received by the client socket.

Other

NameDescription
LoadBalancerConnects to a sgcWebSockets Load Balancer server or to a manually defined pool of WebSocket servers.

All Properties (alphabetical)

NameDescription
ActiveOpens or closes the WebSocket connection to the configured server.
AuthenticationConfigures the credentials and scheme used to authenticate the WebSocket handshake.
ConnectTimeoutMaximum time in milliseconds the client waits for the TCP connection to be established.
ExtensionsEnables WebSocket protocol extensions such as per-message deflate compression.
HeartBeatSends periodic WebSocket ping frames to keep the connection alive.
HostIP address or DNS name of the WebSocket server the client will connect to.
IPVersionSelects the IP protocol version (IPv4 or IPv6) used for the TCP connection.
LoadBalancerConnects to a sgcWebSockets Load Balancer server or to a manually defined pool of WebSocket servers.
LogFilePersists inbound and outbound socket traffic to a file, useful for debugging the wire protocol.
NotifyEventsControls how WebSocket events are dispatched to the main thread.
OptionsCustomizes handshake headers and fine-tunes client behaviour such as fragmentation and UTF-8 validation.
PortTCP port used to connect to the WebSocket server.
ProxyRoutes the WebSocket connection through an HTTP or SOCKS proxy server.
QueueOptionsQueues outgoing Text, Binary and Ping messages so they are serialised on the connection thread.
ReadTimeoutMaximum time in milliseconds the client waits for incoming data before raising a read timeout.
SpecificationsSelects which WebSocket wire specifications the client is allowed to negotiate.
ThrottleLimits the number of bits per second sent or received by the client socket.
TLSEnables a secure TLS/SSL connection to the WebSocket server.
TLSOptionsConfigures certificates, TLS version, ALPN, IOHandler and other secure-connection details used when TLS is enabled.
URLWrite-only shortcut that populates Host, Port, TLS and parameters from a single WebSocket URL.
VersionRead-only string that returns the current sgcWebSockets library version.
WatchDogAutomatically reconnects to the server after an unexpected disconnection.
WriteTimeoutMaximum duration in milliseconds for sending data to the other peer.