WebSocket Proxy Server
TsgcWebSocketProxyServer — accepts WebSocket connections from clients (typically browsers) and forwards data to a plain TCP/IP server. The cleanest way to expose a legacy TCP backend to a modern browser front-end.
TsgcWebSocketProxyServer — accepts WebSocket connections from clients (typically browsers) and forwards data to a plain TCP/IP server. The cleanest way to expose a legacy TCP backend to a modern browser front-end.
Termination proxy for WebSocket and HTTP traffic — do TLS on the edge, forward to internal backends as plain TCP, transparently pass through headers and sub-protocols.
TsgcWebSocketProxyServer
WebSocket / HTTP — RFC 6455
Windows, macOS, Linux, iOS, Android
Enterprise
Bind a public port, point ProxyHost/ProxyPort at the backend.
uses
sgcWebSocket_ProxyServer;
var
Proxy: TsgcWebSocketProxyServer;
begin
Proxy := TsgcWebSocketProxyServer.Create(nil);
Proxy.Port := 443;
Proxy.SSL := True;
// Forward all websocket traffic to a backend
Proxy.ProxyHost := '10.0.0.10';
Proxy.ProxyPort := 8080;
Proxy.Active := True;
end;
19 published properties, 7 methods, 22 events — pulled from the component reference.
Published properties: Active, Port, Bindings.
Methods: Broadcast, WriteData, Ping.
Published properties: LoadBalancer, FallBack.
Published properties: Authentication, SSL, SSLOptions.
Events: OnStartup, OnShutdown, OnTCPConnect.
Events: OnMessage, OnBinary, OnFragmented.
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.
| Online Help — TsgcWebSocketProxyServer Full property, method and event reference for this component. | Open | |
| Demo Project — 01.WebSocket\06.Proxy Ready-to-run example project. Ships inside the sgcWebSockets package — download the trial below. | Open | |
| Technical Document (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only. | Open | |
| User Manual (PDF) Comprehensive manual covering every component in the library. | Open |