Seven client components speak MQTT 3.1.1 and 5.0, AMQP 0.9.1, AMQP 1.0, the Apache Kafka wire protocol and STOMP 1.0 through 1.2, with broker dialects for RabbitMQ and ActiveMQ. Every frame is parsed and written in Object Pascal inside the library, so there is no librdkafka, no Paho, no Qpid and no DLL to ship. All seven ride on one TsgcTCPClient, opened plain or wrapped in TLS.
sgcMQ is a standalone package. It bundles the sgcWebSockets Core runtime it is built on, and every license ships with full source code, so the protocol implementations step through in your own debugger.
7Client componentsMQTT, AMQP 0.9.1, AMQP 1.0, Kafka, STOMP, STOMP RabbitMQ and STOMP ActiveMQ, on one palette page.
5Protocol familiesEach wire format parsed and written in Object Pascal, inside the library.
6Target platformsWin32, Win64, Linux64, macOS, iOS and Android, out of one source tree.
0External librariesNo librdkafka, no Paho, no Qpid, no DLL and no REST proxy in front.
1Transport carrierOne TsgcTCPClient carries all seven, so TLS, proxy and reconnect are configured once.
MQ
sgcMQ
Message queue and streaming clients for Delphi and C++ Builder. A standalone package with the sgcWebSockets Core runtime bundled in, full source code, and royalty-free deployment on all six targets.
Drop the protocol component on a form, assign a TsgcTCPClient to its Client property, wire the events, then call the protocol's own verbs. The naming is consistent across all seven, so learning one gets you most of the way through the rest.
MQTT 3.1.1 & 5.0
Publish, Subscribe and the Whole QoS Machinery
TsgcWSPClient_MQTT covers both protocol versions behind one MQTTVersion property. QoS 0, 1 and 2 with the PUBACK, PUBREC, PUBREL and PUBCOMP exchange surfaced as events rather than hidden, retained messages, Last Will and Testament, wildcard subscriptions and resumable sessions. Version 5 adds reason codes, user properties, topic aliases, shared subscriptions and the AUTH round trip.
TsgcWSPClient_AMQP speaks AMQP 0.9.1, the protocol RabbitMQ was built for: channels, exchange and queue declaration, bindings, consumers, publisher acknowledgements, prefetch QoS and transactions. TsgcWSPClient_AMQP1 speaks AMQP 1.0, the OASIS standard behind Azure Service Bus and Event Hubs: containers, sessions, sender and receiver links, credit-based flow control, SASL and the Claims-Based Security helpers. Different wire format, different object model, so there is a component for each.
TsgcWSPClient_Kafka talks the Kafka wire protocol over TCP, including the v2 record batch format. Produce with a chosen acks level and gzip compression, consume through a group where coordinator discovery, join, sync, heartbeat and rebalance are handled for you, or read a partition by offset.
TsgcWSPClient_STOMP handles SEND, SUBSCRIBE, UNSUBSCRIBE, ACK, NACK, receipts, bidirectional heart-beating and the BEGIN, COMMIT and ABORT transaction frames. Two descendants turn broker destination conventions into named methods, one for RabbitMQ and one for ActiveMQ.
All seven clients and the carrier under them are registered for Win32, Win64, Linux64, macOS, iOS and Android, from Delphi 7 through RAD Studio 13 and on C++ Builder. The messaging pack carries no platform restriction.
Create the protocol component, assign the carrier, hook the events, call the verbs. Switching from a plain listener to an encrypted one is a port number and TLS := True on the carrier, and nothing above it changes.
The same shape in Object Pascal and in C++ Builder, and the same shape for the other three components. The full feature matrix →
BEFORE YOU BUY
Two Things Worth Knowing First
What sgcMQ needs from you, and how the bytes reach the broker. Both answers are short, and both are on this page rather than in the small print.
Native broker listeners
protocol component TCP TLS
MQTT 3.1.1 / 5.0 TsgcWSPClient_MQTT18838883
AMQP 0.9.1 TsgcWSPClient_AMQP56725671
AMQP 1.0 TsgcWSPClient_AMQP156725671
Apache Kafka TsgcWSPClient_Kafka9092*
STOMP TsgcWSPClient_STOMP61613*
STOMP, RabbitMQ TsgcWSPClient_STOMP_RabbitMQ6161361614
STOMP, ActiveMQ TsgcWSPClient_STOMP_ActiveMQ6161361612* whatever the broker's own encrypted listener is configured as.
These are the conventional defaults. The carrier's Port takes
whatever your deployment actually listens on.
sgcMQ is standalone
Everything the components need is bundled inside sgcMQ: the sgcWebSockets Core runtime, the TsgcTCPClient carrier, the TLS layer and the JSON helpers. One installer, full source code in the box.
Plain TCP and TLS, and only that
Every protocol in the pack rides on a raw socket, opened plain or wrapped in TLS. That covers the native broker ports listed here, which is how MQTT, AMQP, Kafka and STOMP are normally deployed. Running a protocol over WebSocket instead, for example MQTT over WebSocket or Web-STOMP, needs the WebSocket client, and that ships with sgcWebSockets. Check which transport your broker exposes before you choose.
Delphi and C++ Builder
sgcMQ targets Delphi 7 through RAD Studio 13 and C++ Builder, on all six platforms. There is no .NET build of this pack. If you need messaging from .NET, that lives in sgcWebSockets.
The carrier does the plumbing
TLSOptions.IOHandler picks OpenSSL for cross-platform builds or SChannel on Windows, WatchDog reconnects after a dropped link, and HTTP CONNECT proxy traversal and IPv6 need no extra configuration. Set it once and every protocol above it inherits it.
sgcMQ implements the published protocols rather than wrapping a vendor SDK, so the broker is your choice: RabbitMQ, Apache Kafka, Eclipse Mosquitto, HiveMQ, EMQX, Apache ActiveMQ, Azure Service Bus and Event Hubs, or AWS IoT Core. Swapping broker is a host, a port and a set of credentials.
THE ECOSYSTEM
Nine Libraries, One Toolbox
sgcMQ is one of ten eSeGeCe component libraries for Delphi, C++ Builder and .NET. They share conventions, they ship with full source, and they deploy royalty-free.
sgcMQ
MQTT, AMQP 0.9.1 and 1.0, Apache Kafka and STOMP client components for Delphi and C++ Builder. Standalone, with the sgcWebSockets Core runtime bundled in.
WebSocket, HTTP/2, MQTT, AMQP, WebRTC, AI and 30+ API integrations for Delphi, C++ Builder, Lazarus and .NET. This is where the WebSocket carrier lives.
AI, LLM and MCP components for Delphi and C++ Builder. Seven LLM providers behind one component, plus MCP, embeddings and speech. Standalone, with the sgcWebSockets Core runtime bundled in.
30-Day Money-Back GuaranteeNot satisfied? Request a full refund within 30 days of purchase. See refund policy
Talk to Your Broker from Delphi
MQTT, AMQP, Kafka and STOMP in one package, natively implemented, with the sgcWebSockets Core runtime bundled in and full source code in the box. Windows, Linux, macOS, iOS and Android from the same code.