pomelo-upgrade
pomelo-upgrade copied to clipboard
您的pomelo-admin-web中的mqtt基础类有两个bug
1 pingreq函数未定义
mqttClient.js:1458 Uncaught TypeError: this.socket.pingreq is not a function
at MqttClient.checkKeepAlive (mqttClient.js:1458)
at mqttClient.js:1436
2 client.connect没有触发回调 状态一直是ST_CONNECTED,没有变成ST_REGISTERED
很好的mqtt基础类,能改正就更好了,能用es6 class写就更更更好了