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

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.

Klasa komponentu

TsgcWebSocketProxyServer

Protokół

WebSocket / HTTP — RFC 6455

Platformy

Windows, macOS, Linux, iOS, Android

Edycja

Enterprise

Drop the component, set a few properties, go

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;

Co jest w środku

19 published properties, 7 methods, 22 events — pulled from the component reference.

Connection

Published properties: Active, Port, Bindings.

Messaging

Methods: Broadcast, WriteData, Ping.

Reliability

Published properties: LoadBalancer, FallBack.

Security

Published properties: Authentication, SSL, SSLOptions.

Lifecycle

Events: OnStartup, OnShutdown, OnTCPConnect.

Data

Events: OnMessage, OnBinary, OnFragmented.

Specyfikacje i źródła

Autorytatywne źródła protokołów implementowanych przez ten komponent.

Dokumentacja i dema

Bezpośredni link do dokumentacji komponentu, gotowy do uruchomienia projekt demo i pobieranie wersji próbnej.

Pomoc online — TsgcWebSocketProxyServer Pełna dokumentacja właściwości, metod i zdarzeń tego komponentu.
Demo Project — 01.WebSocket\06.Proxy Gotowy do uruchomienia projekt przykładowy. Dostarczany w pakiecie sgcWebSockets — pobierz wersję próbną poniżej.
Dokument techniczny (PDF) Funkcje, szybki start, przykłady kodu dla Delphi i C++ Builder oraz źródła pierwotne — tylko ten komponent.
Podręcznik użytkownika (PDF) Kompleksowy podręcznik obejmujący każdy komponent biblioteki.

Bridge Browsers to Any TCP Backend

Pobierz bezpłatną wersję próbną i zamień any TCP service into a WebSocket-friendly endpoint.