sgcWebSockets — WebSocket, HTTP/2, MQTT, AI for Delphi/.NET

sgcWebSockets

The most comprehensive WebSocket and real-time communication library for Delphi, C++ Builder, Lazarus, and .NET. Full RFC 6455 compliance, 30+ API integrations, and enterprise-grade performance.

RFC 6455 Compliant
30+ API Integrations
Delphi 7 – RAD Studio 13
.NET 5–9 Support

Everything You Need for Real-Time Communication

From WebSocket fundamentals to advanced AI integrations, sgcWebSockets delivers a complete toolkit for modern network applications.

WebSocket Client & Server

Full RFC 6455 implementation with binary and Unicode message support, PerMessage_Deflate compression, and automatic reconnection.

HTTP/2

Modern HTTP protocol with multiplexing, server push, and header compression for high-performance connections.

AI & Machine Learning

Native integrations with OpenAI, Anthropic, MCP protocol, ChatBot components, Embeddings, and vector database support.

Real-Time Protocols

Full support for MQTT, AMQP, STOMP, WAMP, and Server-Sent Events with built-in message routing and topic management.

P2P & WebRTC

Peer-to-peer communication with STUN, TURN, and ICE protocols, data channels, and NAT traversal for direct client connections.

30+ API Integrations

Ready-to-use connectors for crypto exchanges, messaging platforms, cloud services, and financial data feeds.

Enterprise-Ready Architecture

Built from the ground up for security, scalability, and reliability in mission-critical applications.

Enterprise-Grade Security

Protect every connection with industry-standard security protocols and flexible authentication mechanisms.

  • TLS 1.2 and TLS 1.3 with automatic negotiation
  • OpenSSL and SChannel backend support
  • OAuth2, Basic, Session, and URL authentication
  • End-to-end encryption for message payloads
  • Bandwidth throttling and rate limiting

Built for Scale

Handle thousands of concurrent connections with high-performance I/O and robust delivery guarantees.

  • IOCP (Windows) and EPOLL (Linux) server models
  • Built-in load balancing across server instances
  • QoS levels: at-most-once, at-least-once, exactly-once
  • Message queuing and transactional messaging
  • HeartBeat and WatchDog for connection monitoring

Broad Platform Support

Develop on your preferred IDE and deploy to every major platform and framework version.

Delphi

Delphi 7 through RAD Studio 13. Full VCL and FireMonkey framework support with design-time components.

C++ Builder

C++ Builder 10.1 Berlin through C++ Builder 13. Native C++ wrapper headers for seamless integration.

Lazarus

Lazarus 4.4.0 Win64 with Free Pascal compiler support for open-source Pascal development.

.NET

.NET Framework 2.0+, .NET Core 1.0+, .NET Standard 1.6+, and .NET 5 through .NET 9.

Target Platforms

Windows 32/64-bit, macOS (Intel & ARM), Linux 64-bit, iOS, and Android.

Easy Installation

Pre-built packages for every supported IDE version. Drop components onto forms and start building immediately.

Simple, Intuitive API

Get connected in minutes with a clean, event-driven API that feels natural in both Delphi and .NET.

Delphi
procedure TForm1.FormCreate(Sender: TObject);
begin
  sgcWebSocketClient1.Host := 'www.esegece.com';
  sgcWebSocketClient1.Port := 2053;
  sgcWebSocketClient1.TLS := True;
  sgcWebSocketClient1.Active := True;
end;

procedure TForm1.sgcWebSocketClient1Connect(Connection: TsgcWSConnection);
begin
  Connection.WriteData('Hello sgcWebSockets!');
end;

procedure TForm1.sgcWebSocketClient1Message(Connection: TsgcWSConnection;
  const Text: string);
begin
  Memo1.Lines.Add('Received: ' + Text);
end;
Delphi
procedure TForm1.FormCreate(Sender: TObject);
begin
  sgcWebSocketHTTPServer1.Port := 8080;
  sgcWebSocketHTTPServer1.SSL := True;
  sgcWebSocketHTTPServer1.SSLOptions.CertFile := 'server.pem';
  sgcWebSocketHTTPServer1.SSLOptions.KeyFile := 'server.key';
  sgcWebSocketHTTPServer1.Active := True;
end;

procedure TForm1.sgcWebSocketHTTPServer1Message(Connection: TsgcWSConnection;
  const Text: string);
begin
  // Echo message back to client
  Connection.WriteData(Text);
end;

procedure TForm1.sgcWebSocketHTTPServer1Connect(Connection: TsgcWSConnection);
begin
  Log('Client connected: ' + Connection.Guid);
end;
C#
using esegece.sgcWebSockets;

var client = new TsgcWebSocketClient();
client.Host = "www.esegece.com";
client.Port = 2053;
client.TLS = true;

client.OnConnect += (sender, connection) =>
{
    connection.WriteData("Hello from .NET!");
};

client.OnMessage += (sender, connection, text) =>
{
    Console.WriteLine($"Received: {text}");
};

client.Active = true;
3,000+Developers
20+Years
761+Components
30+API Integrations
5Platforms
30-Day Money-Back GuaranteeNot satisfied? Request a full refund within 30 days of purchase. See refund policy

Start Building Today

Download the free trial and add real-time communication to your Delphi or .NET application in minutes.

Other Products by eSeGeCe

Pair sgcWebSockets with our other Delphi, C++Builder and .NET component libraries.

sgcHTML

Server-side HTML and UI components for Delphi, C++Builder and .NET. 60+ widgets built on Bootstrap 5 and htmx, with no JavaScript front end to maintain.

Render the server-side UI that your WebSocket server pushes live updates into.

Learn more →

sgcQUIC

QUIC and HTTP/3 client and server components for Delphi, C++Builder and .NET. An add-on for sgcWebSockets Enterprise.

Layer HTTP/3 and raw QUIC transport on top of the same Enterprise license — no separate stack to learn.

Learn more →

sgcOpenAPI

OpenAPI 3.0 parser and SDK generator. Turn any OpenAPI spec into a strongly-typed Delphi client in seconds.

Generate REST clients to combine with your WebSocket and MQTT streams — one toolchain for both real-time and request/response APIs.

Learn more →

sgcSign

Digital signature components for PDF, XAdES, CAdES, and PAdES. Sign and verify documents with smart cards, HSMs, or software keys.

Sign WebSocket and MQTT payloads end-to-end with PAdES or XAdES for tamper-evident real-time messaging.

Learn more →

sgcBiometrics

Native Windows Hello, fingerprint, and Windows Biometric Framework components for Delphi and C++Builder.

Add biometric authentication to your real-time clients without rolling your own WBF wrapper.

Learn more →

sgcIndy

Updated Indy TCP/IP components with modern TLS, IPv6, and HTTP/2 support for Delphi 7 through 13.

Use updated Indy components alongside sgcWebSockets servers when you need a refreshed Indy stack.

Learn more →

sgcAI

15 AI, LLM and MCP components for Delphi and C++ Builder. One chat component reaches OpenAI, Anthropic, Gemini, DeepSeek, Ollama, Grok and Mistral. Standalone, the sgcWebSockets Core runtime is bundled in.

Every AI component here is already in your Enterprise edition. sgcAI is the standalone route for developers on Standard or Professional.

Learn more →

sgcMQ

MQTT 3.1.1 and 5.0, AMQP 0.9.1, AMQP 1.0, Apache Kafka and STOMP client components for Delphi and C++ Builder. Standalone, the sgcWebSockets Core runtime is bundled in.

Every messaging client here is already in your sgcWebSockets edition. sgcMQ is the standalone route for developers who own no edition.

Learn more →

sgcSocial

WhatsApp Business Cloud API and Telegram TDLib clients. Standalone, the sgcWebSockets Core runtime is included.

Both clients are already in sgcWebSockets: Telegram from Standard, WhatsApp from Professional. sgcSocial is the standalone route for developers who own no edition.

Learn more →