Minimal examples of connecting to CloudAMQP, or any AMQP 0-9-1 broker such as LavinMQ or RabbitMQ. Examples are grouped by language, then by client library or framework. Each folder is a self-contained project with its own README.
| Language | Example | Protocol | Description |
|---|---|---|---|
| Arduino | arduino/pubsubclient | MQTT | Publish/subscribe on an ESP32 with PubSubClient, compiled but not run in CI |
| C | c/paho-mqtt | MQTT | QoS 1 publish/subscribe with Eclipse Paho C |
| Clojure | clojure/langohr | AMQP | Publish/consume with Langohr |
| Crystal | crystal/amqp-client | AMQP | Publish/consume with amqp-client.cr |
| .NET | dotnet/mqttnet | MQTT | QoS 1 publish/subscribe with MQTTnet 5 |
| .NET | dotnet/rabbitmq-client | AMQP | Publish/consume with the RabbitMQ .NET client 7 |
| Go | go/amqp-client | AMQP | Publish/consume with amqp-client.go |
| Go | go/paho-mqtt | MQTT | QoS 1 publish/subscribe with paho.mqtt.golang |
| Java | java/paho-mqtt | MQTT | QoS 1 publish/subscribe with Eclipse Paho |
| Java | java/rabbitmq-client | AMQP | Publish/consume with the RabbitMQ Java client |
| JavaScript | javascript/amqp-client | AMQP | Publish/consume with amqp-client.js |
| JavaScript | javascript/mqtt | MQTT | QoS 1 publish/subscribe with MQTT.js |
| Lua | lua/nodemcu | MQTT | QoS 1 publish/subscribe on NodeMCU, not tested in CI |
| PHP | php/php-amqplib | AMQP | Publish/consume with php-amqplib |
| PHP | php/php-mqtt-client | MQTT | QoS 1 publish/subscribe with php-mqtt/client |
| Python | python/celery | AMQP | Celery app using CloudAMQP as the broker |
| Python | python/paho-mqtt | MQTT | QoS 1 publish/subscribe with paho-mqtt |
| Python | python/pika | AMQP | Publish/consume with Pika |
| Ruby | ruby/amqp-client | AMQP | Publish/consume with amqp-client.rb |
| Ruby | ruby/mqtt | MQTT | QoS 1 publish/subscribe with ruby-mqtt |
| Rust | rust/amqp-client | AMQP | Publish/consume with amqp-client.rs |
| Rust | rust/rumqttc | MQTT | QoS 1 publish/subscribe with rumqttc |
| Shell | shell/mosquitto | MQTT | QoS 1 publish/subscribe with mosquitto_pub and mosquitto_sub |
| Swift | swift/mqttnio | MQTT | QoS 1 publish/subscribe with MQTT NIO |
| TypeScript | typescript/amqp-client | AMQP | Publish/consume with amqp-client.js |