pomelo-upgrade icon indicating copy to clipboard operation
pomelo-upgrade copied to clipboard

您的pomelo-admin-web中的mqtt基础类有两个bug

Open SteveCruise opened this issue 7 years ago • 0 comments

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写就更更更好了

SteveCruise avatar May 24 '17 09:05 SteveCruise