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 := 'echo.websocket.org';
  sgcWebSocketClient1.Port := 443;
  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 = "echo.websocket.org";
client.Port = 443;
client.TLS = true;

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

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

client.Active = true;

Start Building Today

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