Features & Capabilities

Every tool you need for real-time communication, built into a single, high-performance library.

Built for Performance & Reliability

A rock-solid foundation for every real-time application.

Cross-Platform Support

Windows, Linux, macOS, iOS, Android — write once and deploy everywhere with a single codebase. Full support for both VCL and FireMonkey frameworks.

100% Native Delphi

Written entirely in Object Pascal. No external DLLs required for core functionality. Seamless integration with FireMonkey and VCL applications.

Multithreaded Server

Fully functional multithreaded WebSocket server (RFC 6455). IOCP on Windows and EPOLL on Linux for maximum throughput with thousands of concurrent connections.

SSL/TLS 1.2 & 1.3

Full SSL/TLS encryption on both server and client with OpenSSL and SChannel backends. Built-in certificate management and automatic protocol negotiation.

Message Compression

PerMessage-Deflate WebSocket extension reduces bandwidth usage by up to 80%. Configurable compression levels for optimal balance between CPU and bandwidth.

Binary & Full Unicode

Full support for binary frames and Unicode text messages per RFC 6455. Transfer any data type — files, images, structured data — natively.

Multi-Protocol Server

Server component providing WebSocket, HTTP/1.1 and HTTP/2.0 connections on the same port. No need to run separate servers for each protocol.

HTTP Proxy Support

Client WebSocket supports HTTP Proxy connections for seamless connectivity through corporate networks and restrictive environments.

Built-in JavaScript Libraries

Included JavaScript client libraries for seamless browser integration. Connect web front-ends to your Delphi WebSocket server instantly.

Always Connected, Always Available

Built-in mechanisms to keep your connections healthy and recover from failures automatically.

HeartBeat

Keep your connections alive and detect failures before they become problems.

  • Automatic ping/pong at configurable intervals
  • Detects dead connections early
  • Keeps connections alive through firewalls and proxies

WatchDog

Automatic recovery ensures your application stays online no matter what.

  • Automatic reconnection for clients after unexpected disconnection
  • Auto-restart for servers
  • Zero-downtime recovery
Client reconnect Server restart

Load Balancing

Distribute connections across multiple back-end servers for maximum scalability.

  • Distribute connections across multiple back-end servers
  • Round-robin and custom distribution strategies
Balancer Server 1 Server 2 Server 3

Proxy Support

Seamless connectivity through corporate networks and restrictive environments.

  • Connect through HTTP proxies and SOCKS proxies
  • Transparent proxy traversal for enterprise networks
Client Proxy Server

Flexible Authentication Methods

Secure your WebSocket connections with multiple authentication strategies.

Basic Authentication

Standard HTTP Basic authentication for simple username/password credential validation on WebSocket connections.

OAuth2

Full OAuth2 support for both client and server. Integrate with identity providers for secure token-based authentication flows.

Session Authentication

Server-side session management with configurable timeouts. Maintain user state across multiple WebSocket connections.

URL Authentication

Token-based authentication via URL parameters. Ideal for browser clients and environments where headers cannot be customized.

Guaranteed Message Delivery

Three QoS levels to match your application's reliability requirements.

Level 0: At Most Once

Fire-and-forget delivery. Messages are sent with no acknowledgment. Best for high-frequency data where occasional loss is acceptable.

Level 1: At Least Once

Acknowledged delivery with retransmission. Messages are guaranteed to arrive but may be delivered more than once.

Level 2: Exactly Once

Four-step handshake ensures each message is delivered exactly once. Ideal for financial transactions and critical operations.

Enterprise-Grade Capabilities

Powerful features for building mission-critical real-time applications.

Bandwidth Throttling

Limit bits per second per connection. Prevent bandwidth abuse and ensure fair resource allocation across all clients.

Message Queuing

Three queue levels with persistence. Replay missed messages after reconnection so clients never miss an update.

Transactional Messaging

StartTransaction, Commit, RollBack. Coordinate complex multi-step operations atomically with full transaction support.

Server-Sent Events (SSE)

HTTP-based push notifications. A reliable fallback for environments where WebSocket connections are not available.

FallBack Support

Automatic fallback for browsers without WebSocket support. SSE + XHR alternative transport ensures connectivity in any environment.

Custom Connection Objects

TsgcWSConnection class lets you store session data, database connections, and user context per connection for stateful applications.

Works Everywhere You Do

Comprehensive support for IDEs, frameworks, and operating systems.

Delphi

Delphi 7 through RAD Studio 13. Full support for every version spanning over 20 years of Delphi development.

C++ Builder

C++ Builder 10.1 Berlin through C++ Builder 13. Native C++ integration with full component support.

Lazarus / FreePascal

Open-source Pascal development with cross-platform support via the Lazarus IDE and FreePascal compiler.

.NET

.NET Framework 2.0+, .NET Core, .NET 5–9, and .NET Standard 1.6/2.0. Full C# API mirroring the Delphi implementation.

Mobile Platforms

iOS and Android via FireMonkey. Build native mobile apps with real-time WebSocket connectivity from a single Delphi codebase.

Browser Support

Chrome, Firefox, Safari, Opera, and Edge. Built-in JavaScript libraries for seamless browser-to-server communication.

Built for Developers

Tools and conveniences that make development fast and enjoyable.

Binding Configuration

Bind to specific IP addresses and ports. Multi-port listening lets a single server instance handle multiple endpoints.

DocumentRoot

Serve static HTML, CSS, and JavaScript files directly from your WebSocket server. No separate web server needed.

Easy Setup

Drop components on your form, set properties, handle events. Go from zero to production-ready in minutes, not hours.

Ready to Build?

Start building real-time applications with sgcWebSockets today.