MQTT.js browser node 均支持
npm - mqtt 官网手册
https://www.npmjs.com/package/mqtt#weapp
简书用户 使用笔记
https://www.jianshu.com/p/4fd95cae1a9c
https://blog.csdn.net/libaineu2004/article/details/82754267
Via CDN 直接获取源js方法
The MQTT.js bundle is available through http://unpkg.com, specifically at https://unpkg.com/mqtt/dist/mqtt.min.js. See http://unpkg.com for the full documentation on version ranges.
WeChat Mini Program 微信小程序使用法手册
Support WeChat Mini Program. See Doc.
Example(js) 微信小程序例子
var mqtt =
var client = mqtt
Ali Mini Program 阿里小程序使用法手册
Surport Ali Mini Program. See Doc.
Example(js) 阿里小程序例子
var mqtt =
var client = mqtt