We use cookies
We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.
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.
Full compliant STOMP Client Component for Delphi and CBuilder.
Following features are implemented
Full compliant RabbitMQ Client Component for Delphi and CBuilder.
Following features are implemented
Full compliant ActiveMQ Client Component for Delphi and CBuilder.
Following features are implemented
Code Examples for STOMP Client.
// Create websocket client and set server options
oClient := TsgcWebSocketClient.Create(nil);
oClient.Host := 'www.esegece.com';
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
oSTOMP.Disconnect;
We would love to hear about your projects. Got a question? Drop us a mail.
eSeGeCe
Barcelona
Spain (Europe)