WebSocket and HTTP Support

sgcWebSockets includes client and server-side implementations of the WebSocket protocol (RFC 6455). HTTP/s is also full supported.

SSL/TLS for Security

Your messages are secure using our SSL/TLS implementation. Widest compatibility via support for modern TLS 1.3 and TLS 1.2

Protocols and APIs

Several protocols are supported: MQTT, STOMP, WEBRTC, WAMP... Built-in protocols support Transactions, Datasets, QoS, big file transfers and more. APIs supported for third-parties like Pusher, Bitfinex...

Cross-platform

Share your code using our WebSockets library for your Delphi , .NET and CBuilder Applications. Includes Server, Clients and serveral protocols for building and connecting to WebSocket applications.

Delphi WebSocket Client

eSeGeCe provides a fully featured WebSocket component that allows to connect to any WebSocket Server using the latest TLS versions, OAuth protocol, JWT Tokens and much more.

Delphi HTTP Client

sgcWebSockets supports latest HTTP protocol, the HTTP/2 version, which highly improves the performance of HTTP connections. The component is built using 100% native Delphi code without external dependencies. HTTP/1 protocol is supported too and includes the latest TLS versions for secure connections.

Delphi WebSocket Server

There are 2 available servers: one based on Indy library with support for WebSocket, HTTP, SSE, OAuth2, JWT, plain TCP connections... IOCP and EPOLL are supported too. And another server based on HTTP.SYS Microsoft API which can handle thousands of concurrents connections with support for HTTP and WebSocket without external dependencies.

Delphi HTTP Server

Servers support HTTPs protocol (HTTP/1 and HTTP/2) including the latest Authentication protocols like OAuth2 or JWT. So you can build your REST server and provide OAuth2 Authentication for client requests. DataSnap server can be replaced by sgcWebSockets servers to improve stability, reliability and modernize the Authentication protocols adding OAuth2 and JWT.

Delphi Crypto Trading

Several Crypto Brokers are publishing WebSocket and REST APIs to allow custom trading through their platforms. sgcWebSockets fully supports real-time data using websocket streams or Trading private accounts through the REST API on several platforms like Binance, Coinbase Pro or Kraken.

Delphi Cloud Components

sgcWebSockets provide solutions for working cloud providers like Amazon AWS, Microsoft Azure or Google Cloud. There are clients for IoT protocols, Amazon SQS, Google PubSub and more.

OpenAI Components

Discover the power of sgcWebSockets OpenAI applications! Harnessing the cutting-edge capabilities of artificial intelligence, our library empowers businesses to revolutionize their processes. Unlock unparalleled efficiency, accuracy, and innovation, as you automate tasks, enhance customer experiences, and gain valuable insights.

Embrace the future with OpenAI

and stay ahead of the competition.

P2P Components

Unleash the potential of P2P applications and revolutionize connectivity! With our innovative components, experience direct communication and seamless sharing between users. Say goodbye to intermediaries, enjoy enhanced security and privacy, and tap into a world of decentralized collaboration. Embrace the power of P2P and reshape the way you connect and interact.

Create Delphi WebSocket Client

Create Delphi WebSocket Server

How Create Windows Forms WebSocket Client

Example: open a websocket connection to echo.websocket.org

  1. Create a new Windows Forms Application 

  2. Create a TsgcWebSocketClient and configure Host and Port Properties to connect to Server.

    sgcWebSocketClient1 = new TsgcWebSocketClient();

    sgcWebSocketClient1.Host = "www.esegece.com";

    sgcWebSocketClient1.Port = 2052;

  3. Drop a Button on the Form, Double Click and type this code:

   sgcWebSocketClient1.Active = true;

  4. Drop a Button on the Form, Double Click and type this code:

  sgcWebSocketClient1.WriteData("Hello Server From VCL Client");

  5. Build Project and that's all, you have configured a basic WebSocket Client.

How Create Windows Forms WebSocket Server

Example: create a server which listen on port 80

  1. Create a new VCL Forms Application 

  2. Create a TsgcWebSocketServer and set listening port

      sgcWebsocketServer1 = new TsgcWebSocketServer();

      sgcWebsocketServer1.Port = 80;

  3. Handle OnMessage Event, and type following code:

      sgcWebsocketServer1.OnMessage += OnMessageEvent;

      private void OnMessageEvent(TsgcWSConnection Connection, string Text)

      {

      MessageBox.Show("Message Received From Client: " + Text);

      }

  4. Drop a Button on the Form, Double Click and type this code:

      sgcWebsocketServer1.Active = true;

   5. Build Project and that's all, you have configured a basic WebSocket Server.

sgcWebSockets .NET Community

sgcWebSockets .NET Community Edition (.NET 2.0 +, .NET Standard 1.6+, .NET Core 1.0+) For Windows, Linux64 and OSX64
sgcWebSockets .NET Community

sgcWebSockets .NET Community Nuget Package
Nuget

sgcWebSockets .NET Community Compiled Demos

Includes a set of compiled demos which shows the use of sgcWebSockets

Download

sgcWebSockets .NET Videos

  • * except BASIC edition
  • Delphi | CBuilder
  • * For Windows (32/64) and MacOS 64
  • * ENTERPRISE edition only.
  • .NET
Intro
Image is not available
sgcWebSockets.NET
Share your code using our WebSockets .NET Library
sgcWebSockets Library
sgcWebSockets Library

sgcWebSockets is a complete package providing access to WebSockets protocol, allowing to create WebSockets Servers and Clients for .NET Applications.
MQTT, Telegram, Socket.IO and WebRTC are also supported.

Contact
We'd love to hear from you.

We would love to hear about your projects. Got a question? Drop us a mail.

Barcelona, Spain
Mon - Fri / 9AM - 5PM
Image is not available

eSeGeCe

Barcelona
Spain (Europe)