TsgcWebSocketClientProperties › TLS

TLS Property

Enables a secure TLS/SSL connection to the WebSocket server.

Syntax

public bool TLS { get; set; }

Default Value

False

Remarks

Set TLS to True to negotiate a secure (wss://) connection. Additional TLS parameters (certificate files, verification, TLS version, IOHandler) are configured through TLSOptions. Assigning a wss:// URL automatically sets TLS to True.

Example


oClient = new TsgcWebSocketClient();
oClient.Host = "www.esegece.com";
oClient.Port = 2053;
oClient.TLS = true;
oClient.Active = true;

Back to Properties