TsgcWebSocketClient › Properties › TLS
Enables a secure TLS/SSL connection to the WebSocket server.
property TLS: Boolean read FTLS write FTLS;
False
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.
oClient := TsgcWebSocketClient.Create(nil);
oClient.Host := 'www.esegece.com';
oClient.Port := 2053;
oClient.TLS := true;
oClient.Active := true;