sgcWebSockets — comunicação em tempo real para Delphi e .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
Garantia de reembolso de 30 diasNão ficou satisfeito? Solicite o reembolso total em até 30 dias após a compra. Ver política de reembolso

Start Building Today

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

Outros Produtos da eSeGeCe

Combine o sgcWebSockets com nossas outras bibliotecas de componentes para Delphi, C++ Builder e .NET.

sgcHTML

Componentes HTML e UI server-side para Delphi, C++ Builder e .NET. Mais de 60 widgets construídos sobre Bootstrap 5 e htmx, sem front-end JavaScript para manter.

Renderize a UI server-side para a qual seu servidor WebSocket envia atualizações ao vivo.

Saiba mais →

sgcQUIC

Componentes cliente e servidor QUIC e HTTP/3 para Delphi, C++ Builder e .NET. Um complemento do sgcWebSockets Enterprise.

Adicione HTTP/3 e transporte QUIC puro sobre a mesma licença Enterprise — sem uma stack separada para aprender.

Saiba mais →

sgcOpenAPI

Parser de OpenAPI 3.0 e gerador de SDK. Transforme qualquer especificação OpenAPI em um cliente Delphi fortemente tipado em segundos.

Gere clientes REST para combinar com seus streams WebSocket e MQTT — uma única toolchain para APIs em tempo real e de requisição/resposta.

Saiba mais →

sgcSign

Componentes de assinatura digital para PDF, XAdES, CAdES e PAdES. Assine e verifique documentos com smart cards, HSMs ou chaves de software.

Assine payloads WebSocket e MQTT de ponta a ponta com PAdES ou XAdES para mensagens em tempo real à prova de adulteração.

Saiba mais →

sgcBiometrics

Componentes nativos de Windows Hello, impressão digital e Windows Biometric Framework para Delphi e C++ Builder.

Adicione autenticação biométrica aos seus clientes em tempo real sem criar seu próprio wrapper WBF.

Saiba mais →

sgcIndy

Componentes Indy TCP/IP atualizados com TLS moderno, suporte a IPv6 e HTTP/2 para Delphi 7 a 13.

Use componentes Indy atualizados junto com servidores sgcWebSockets quando precisar de uma stack Indy renovada.

Saiba mais →