TsgcWebSocketClientProperties › Host

Host Property

IP address or DNS name of the WebSocket server the client will connect to.

Syntax

public string Host { get; set; }

Default Value

(empty string)

Remarks

Set Host together with Port to specify the WebSocket endpoint. Alternatively, assign the full URL property and Host, Port, TLS and Parameters are populated automatically. Host accepts either an IPv4/IPv6 address or a DNS name; the resolver used depends on IPVersion.

Example


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

Back to Properties