TsgcWebSocketClient › Properties › IPVersion
Selects the IP protocol version (IPv4 or IPv6) used for the TCP connection.
property IPVersion: TIdIPVersion read FIPVersion write FIPVersion;
Id_IPv4
Set to Id_IPv4 to connect over IPv4 or Id_IPv6 for IPv6. The property controls how the Host is resolved and the family of the underlying socket.
oClient := TsgcWebSocketClient.Create(nil);
oClient.Host := '::1';
oClient.Port := 80;
oClient.IPVersion := Id_IPv6;
oClient.Active := true;