TsgcWebSocketClient › Properties › URL
Write-only shortcut that populates Host, Port, TLS and parameters from a single WebSocket URL.
public string URL { set; }
—
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.
oClient = new TsgcWebSocketClient();
oClient.URL = "wss://www.esegece.com:2053";
oClient.Active = true;