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.
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.
From WebSocket fundamentals to advanced AI integrations, sgcWebSockets delivers a complete toolkit for modern network applications.
Full RFC 6455 implementation with binary and Unicode message support, PerMessage_Deflate compression, and automatic reconnection.
Modern HTTP protocol with multiplexing, server push, and header compression for high-performance connections.
Native integrations with OpenAI, Anthropic, MCP protocol, ChatBot components, Embeddings, and vector database support.
Full support for MQTT, AMQP, STOMP, WAMP, and Server-Sent Events with built-in message routing and topic management.
Peer-to-peer communication with STUN, TURN, and ICE protocols, data channels, and NAT traversal for direct client connections.
Ready-to-use connectors for crypto exchanges, messaging platforms, cloud services, and financial data feeds.
Built from the ground up for security, scalability, and reliability in mission-critical applications.
Protect every connection with industry-standard security protocols and flexible authentication mechanisms.
Handle thousands of concurrent connections with high-performance I/O and robust delivery guarantees.
Develop on your preferred IDE and deploy to every major platform and framework version.
Delphi 7 through RAD Studio 13. Full VCL and FireMonkey framework support with design-time components.
C++ Builder 10.1 Berlin through C++ Builder 13. Native C++ wrapper headers for seamless integration.
Lazarus 4.4.0 Win64 with Free Pascal compiler support for open-source Pascal development.
.NET Framework 2.0+, .NET Core 1.0+, .NET Standard 1.6+, and .NET 5 through .NET 9.
Windows 32/64-bit, macOS (Intel & ARM), Linux 64-bit, iOS, and Android.
Pre-built packages for every supported IDE version. Drop components onto forms and start building immediately.
Get connected in minutes with a clean, event-driven API that feels natural in both Delphi and .NET.
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;
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;
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;