.NET Components
C# components for WebSocket client/server applications across .NET Framework 2.0+, .NET Core 1.0+, .NET 5–9, and .NET Standard 1.6/2.0.
C# components for WebSocket client/server applications across .NET Framework 2.0+, .NET Core 1.0+, .NET 5–9, and .NET Standard 1.6/2.0.
A C# port that mirrors the Delphi API — same class names, same properties, same events. Runs on Windows, Linux 64, and macOS 64.
TsgcWebSocketClient for .NET — secure connections with TLS, automatic reconnection (WatchDog), binary and text messages, and sub-protocol negotiation. Cross-platform from .NET Framework 2.0 through .NET 9.
TsgcWebSocketHTTPServer for .NET — production-grade WebSocket and HTTP server. Handles thousands of concurrent connections with SSL/TLS and REST endpoints. Same API as the Delphi server.
Five lines of C# to open a TLS-secured WebSocket connection.
using esegece.sgcWebSockets;
var client = new TsgcWebSocketClient();
client.Host = "echo.websocket.org";
client.Port = 443;
client.TLS = true;
client.Active = true;