telemersive-bus 0.6.1 → 0.6.2
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.
- package/lib/BusManager.js +8 -7
- package/package.json +1 -1
package/lib/BusManager.js
CHANGED
|
@@ -345,15 +345,16 @@ class BusManager {
|
|
|
345
345
|
} else {
|
|
346
346
|
//room exists: checked if the doubled hashed roomPwd is equal
|
|
347
347
|
accessGrant = true;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
348
|
+
console.log(` -> peer '${_message.peerName}' joining room '${_message.roomName}'`);
|
|
349
|
+
// if there is a housekeeping process in progress,
|
|
350
|
+
// we need it to stop it right here, otherwise the newly joined peer could be
|
|
351
|
+
// kicked out right away.
|
|
352
|
+
if (this.houseKeepingInProgress) {
|
|
353
|
+
console.log(` -> peer '${_message.peerName}' joining interrupts housekeeping.. `);
|
|
352
354
|
this.houseKeepingInProgress = false;
|
|
353
|
-
// and we wait a moment to start with housekeeping again
|
|
354
|
-
setTimeout(this.startHousekeeping, houseKeepingTimeOut_onPeerJoined);
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
// and we wait a moment to start with housekeeping again
|
|
357
|
+
setTimeout(this.startHousekeeping, houseKeepingTimeOut_onPeerJoined);
|
|
357
358
|
}
|
|
358
359
|
}
|
|
359
360
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telemersive-bus",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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": {
|