TsgcWebSocketClient › Properties › Proxy
Routes the WebSocket connection through an HTTP or SOCKS proxy server.
public TsgcWSProxy_Options Proxy { get; set; }
Enabled=False, Port=8080
Set Proxy.Enabled to True and fill in Host and Port to tunnel the connection through a proxy. Supported proxy types (ProxyType) are pxyHTTP, pxySocks4, pxySocks4A and pxySocks5. Username and Password are optional; leave them blank for anonymous authentication.
Client = new TsgcWebSocketClient();
Client.Proxy.Enabled = true;
Client.Proxy.Username = "user";
Client.Proxy.Password = "secret";
Client.Proxy.Host = "80.55.44.12";
Client.Proxy.Port = 8080;
Client.Active = true;