telemersive-bus 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,7 +83,9 @@ class MqttNetBus {
83
83
 
84
84
  disconnect = async () => {
85
85
  if(this.isConnected){
86
- await this.mqttClient.end();
86
+ // we need to force end the connection
87
+ // probably because of subscriptions with QoS = 2
88
+ await this.mqttClient.end(true);
87
89
  }
88
90
  this.isConnected = false;
89
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telemersive-bus",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "MQTT based data protocol to manage unlimited peers, connected by rooms, where all peers joined to a room can exchange private data. It provides a simple chat mechanism, latency pinging, publish-subscribe mechanism (based on mqtt) and a OSC-like data stream. ",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -10,7 +10,7 @@
10
10
  "async-mqtt": "^2.6.1",
11
11
  "crypto-js": "^4.0.0",
12
12
  "internal-ip": "^6.2.0",
13
- "mqtt": "^4.2.5",
13
+ "mqtt": "^5.3.5",
14
14
  "protobufjs": "^6.10.2",
15
15
  "public-ip": "^4.0.2",
16
16
  "sha1": "^1.1.1",