TsgcWebSocketClientProperties › Port

Port Property

TCP port used to connect to the WebSocket server.

Syntax

public int Port { get; set; }

Default Value

80

Remarks

Defines the listening port of the remote server. Typical values are 80 for plain WebSocket (ws://) and 443 for secure WebSocket (wss://), but any port accepted by the server is allowed. Setting the URL property overwrites Port with the port parsed from the URL.

Example


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

Back to Properties