Currently the most mature client library for Ruby is the synchronous
, the async
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.