from
https://www.hivemq.com/blog/mqtt-client-library-encyclopedia-paho-js/