TsgcWebSocketClient › Properties › Port
TCP port used to connect to the WebSocket server.
property Port: Integer read FPort write FPort;
80
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.
oClient := TsgcWebSocketClient.Create(nil);
oClient.Host := 'www.esegece.com';
oClient.Port := 2053;
oClient.TLS := true;
oClient.Active := true;