Skip to content
Permalink
Browse files

优化模拟器

  • Loading branch information...
zhou-hao committed Sep 17, 2018
1 parent f5bdcc3 commit 7cc7904256ffd828b57226202ba922bf1a313708
Showing with 6 additions and 0 deletions.
  1. +6 −0 mqtt-emulator/src/main/nodejs/mqtt-emulator.js
@@ -92,10 +92,16 @@ function doMqttConnect(clientId, pwd) {
});
client.on("disconnect", function () {
// console.log("client", clientId, "disconnect");
if (!success) {
pb.render({completed: ++completedCounter, success: connectCounter, error: ++errorCounter, total: limit});
}
client.end();
});
client.on("close", function () {
// console.log("client", clientId, "closed");
if (!success) {
pb.render({completed: ++completedCounter, success: connectCounter, error: ++errorCounter, total: limit});
}
client.end();
});
client.on('error', function (error) {

0 comments on commit 7cc7904

Please sign in to comment.
You can’t perform that action at this time.