Here is my first plugin: an mqtt client.
I wrapped the Eclipse Paho JavaScript Client from: https://www.eclipse.org/paho/clients/js/
which uses websockets. Sample .capx provided.
download at:
https://drive.google.com/open?id=1C59Y6E91vKDPss6GPDU2UsOh24evvdne