TsgcWebSocketClientProperties › TLS

TLS Property

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

Syntax

property TLS: Boolean read FTLS write FTLS;

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 := TsgcWebSocketClient.Create(nil);
oClient.Host := 'www.esegece.com';
oClient.Port := 2053;
oClient.TLS := true;
oClient.Active := true;

Back to Properties