I wanted to announce the first tagged version of native D MQTT
client library for vibe-d.
It's just the first release so there are features missing, but
hopefully with community help, they will be there soon.
It's tested against RabbitMQ message broker.
I wanted it to be as lightweight as possible, so it has no other
direct dependencies but vibe-d.
There are already mqttd broker implementation by Atila Nevens
and his cerealed serializer I know of. Actually they were both
helpfull resources - so thanks for that.
Main differences are:
- messages are structs not classes - avoid GC as much as possible
- focus on the client side
- serialization is done simply, just to work with defined
messages (not as a generic serialization) with range interfaces -
speed is on par with msgpack-d
- hopefully clean easily understandable code with a lot of
comments in it to make it easier for contributors
- supports the latest MQTT protocol - 3.1.1
I still consider myself as a D rookie, so there are surely places
which can be done better, more D idiomatic way. You are welcome
to point me to them or even create pull requests.