Image is not available
Share your code using our WebSockets Components for
Delphi, CBuilder and Lazarus.

sgcWebSockets is a complete package providing access to WebSockets protocol, allowing to create WebSockets Servers and Clients for Delphi and CBuilder Projects.
Several Protocols and APIs are also supported.

STOMP provides an interoperable wire format so that STOMP clients can communicate with any STOMP message broker to provide easy and widespread messaging interoperability among many languages, platforms and brokers.

STOMP is simple

Simple (or Streaming) Text Oriented Message Protocol (STOMP), is a simple text-based protocol

Message-oriented Middleware

Designed for working with message-oriented middleware (MOM)

Interoperable wire format

It provides an interoperable wire format that allows STOMP clients to talk with any message broker supporting the protocol.

STOMP is language-agnostic

Any broker developed for one programming language or platform can receive communications from client software developed in another language.

  • STOMP Client Help
  • STOMP Demo
  • Components Trial

  • RabbitMQ Client Help
  • STOMP Demo
  • Components Trial

  • ActiveMQ Client Help
  • STOMP Demo
  • Components Trial

Create Connection

// Create websocket client and set server options
oClient := TsgcWebSocketClient.Create(nil);
oClient.Host := '';
oClient.Port := 15674;
oClient.Options.Parameters := '/ws';

// Create STOMP protocol and assign to websocket client
oSTOMP := TsgcWSPClient_STOMP.Create(nil);
oSTOMP.Client := oClient;

// STOMP Authentication
oSTOMP.Authentication.Enabled := True;
oSTOMP.Authentication.Username := 'sgc';
oSTOMP.Authentication.Password := 'sgc';

// Handle STOMP methods
oSTOMP.OnSTOMPConnect := OnSTOMPConnectHandler;
oSTOMP.OnSTOMPMessage := OnSTOMPMessageHandler;

// connect to server
oClient.Active := True;


// Subscribe to channel "myTopic"
oSTOMP.Subscribe('id0', 'myTopic');


// Send a message to all subscribers of channel "myTopic"
oSTOMP.Send('myTopic', 'Text message');


// Disconnect from server

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


Spain (Europe)