TsgcWebSocketClientProperties › URL

URL Property

Write-only shortcut that populates Host, Port, TLS and parameters from a single WebSocket URL.

Syntax

property URL: String write SetURL;

Default Value

Remarks

Assigning a full WebSocket URL (for example wss://127.0.0.1:8080/ws/) is the easiest way to configure the client: the setter parses the scheme, host, port and path and updates Host, Port, TLS and Options.Parameters accordingly. Use ws:// for plain connections and wss:// for TLS.

Example


oClient := TsgcWebSocketClient.Create(nil);
oClient.URL := 'wss://www.esegece.com:2053';
oClient.Active := true;

Back to Properties