Important Notice: CloudMQTT is shutting down. Read all about it in our End of Life Announcement
Ruby logo


Currently the most mature client library for Ruby is the synchronous ruby-mqtt , the async em-mqtt has yet to support user/password before it's usable with CloudMQTT.

The full source for the example can be found here:

Worth noting is that the client does not yet support other QoS levels than 0, ie. no publish acknowledge or redelivery.