telemersive-bus 0.0.31 → 0.4.0
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 +20 -20
- package/lib/utils/version.js +1 -1
- package/package.json +1 -1
package/lib/BusManager.js
CHANGED
|
@@ -552,31 +552,31 @@ class BusManager {
|
|
|
552
552
|
for (let i = 0; i < 20; i++) {
|
|
553
553
|
// OSC proxies
|
|
554
554
|
try{
|
|
555
|
-
await this.addSwitchBoardProxy(_roomName,_roomId * 1000 + i *
|
|
555
|
+
await this.addSwitchBoardProxy(_roomName,_roomId * 1000 + i * 10 + 0, 'many2manyBi', "UDP proxy for OSC, channel:" + i);
|
|
556
556
|
} catch(err){
|
|
557
|
-
console.error(` ...: ${err}. Interrupting process of starting up many2manyBi script on port ${_roomId * 1000 + i *
|
|
557
|
+
console.error(` ...: ${err}. Interrupting process of starting up many2manyBi script on port ${_roomId * 1000 + i * 10 + 05}.`);
|
|
558
558
|
}
|
|
559
559
|
// Ultragrid video and audio proxies
|
|
560
560
|
try{
|
|
561
|
-
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 +
|
|
561
|
+
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 + i * 10 + 2, 'one2manyMo', "Ultragrid video proxy, channel:" + i);
|
|
562
562
|
} catch(err){
|
|
563
|
-
console.error(` ...: ${err}. Interrupting process of starting up one2manyMo script on port ${_roomId * 1000 +
|
|
563
|
+
console.error(` ...: ${err}. Interrupting process of starting up one2manyMo script on port ${_roomId * 1000 + i * 10 + 2}.`);
|
|
564
564
|
}
|
|
565
565
|
try{
|
|
566
|
-
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 +
|
|
566
|
+
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 + i * 10 + 4, 'one2manyMo', "Ultragrid audio proxy, channel:" + i);
|
|
567
567
|
} catch(err){
|
|
568
|
-
console.error(` ...: ${err}. Interrupting process of starting up one2manyMo script on port ${_roomId * 1000 +
|
|
568
|
+
console.error(` ...: ${err}. Interrupting process of starting up one2manyMo script on port ${_roomId * 1000 + i * 10 + 4}.`);
|
|
569
569
|
}
|
|
570
570
|
// NatNet2OSC and NatNetBridge proxies
|
|
571
571
|
try{
|
|
572
|
-
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 +
|
|
572
|
+
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 + i * 10 + 6, 'one2manyMo', "NatNet-data proxy, channel:" + i);
|
|
573
573
|
} catch(err){
|
|
574
|
-
console.error(` ...: ${err}. Interrupting process of starting up
|
|
574
|
+
console.error(` ...: ${err}. Interrupting process of starting up one2manyMo script on port ${_roomId * 1000 + i * 10 + 6}.`);
|
|
575
575
|
}
|
|
576
576
|
try{
|
|
577
|
-
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 +
|
|
577
|
+
await this.addSwitchBoardProxy(_roomName, _roomId * 1000 + i * 10 + 8, 'one2manyBi', "MoCap/NatNet-Ctrl proxy, channel:" + i);
|
|
578
578
|
} catch(err){
|
|
579
|
-
console.error(` ...: ${err}. Interrupting process of starting up
|
|
579
|
+
console.error(` ...: ${err}. Interrupting process of starting up one2manyBi script on port ${_roomId * 1000 + i * 10 + 8}.`);
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
console.log(` <- started all ports for room ${_roomName}`);
|
|
@@ -593,29 +593,29 @@ class BusManager {
|
|
|
593
593
|
console.log(` -> stopping ports for room '${_roomName}' on range '${_roomId}000 - ${_roomId}999`);
|
|
594
594
|
for (let i = 0; i < 20; i++) {
|
|
595
595
|
try{
|
|
596
|
-
await this.deleteSwitchBoardProxy(_roomId * 1000 + i *
|
|
596
|
+
await this.deleteSwitchBoardProxy(_roomId * 1000 + i * 10 + 0);
|
|
597
597
|
} catch(err){
|
|
598
|
-
console.error(` ...: ${err}. Interrupting process of stopping many2manyBi script on port ${_roomId * 1000 + i *
|
|
598
|
+
console.error(` ...: ${err}. Interrupting process of stopping many2manyBi script on port ${_roomId * 1000 + i * 10 + 0}.`);
|
|
599
599
|
}
|
|
600
600
|
try{
|
|
601
|
-
await this.deleteSwitchBoardProxy(_roomId * 1000 +
|
|
601
|
+
await this.deleteSwitchBoardProxy(_roomId * 1000 + i * 10 + 2);
|
|
602
602
|
} catch(err){
|
|
603
|
-
console.error(` ...: ${err}. Interrupting process of stopping one2manyMo script on port ${_roomId * 1000 +
|
|
603
|
+
console.error(` ...: ${err}. Interrupting process of stopping one2manyMo script on port ${_roomId * 1000 + i * 10 + 2}.`);
|
|
604
604
|
}
|
|
605
605
|
try{
|
|
606
|
-
await this.deleteSwitchBoardProxy(_roomId * 1000 +
|
|
606
|
+
await this.deleteSwitchBoardProxy(_roomId * 1000 + i * 10 + 4);
|
|
607
607
|
} catch(err){
|
|
608
|
-
console.error(` ...: ${err}. Interrupting process of stopping one2manyMo script on port ${_roomId * 1000 +
|
|
608
|
+
console.error(` ...: ${err}. Interrupting process of stopping one2manyMo script on port ${_roomId * 1000 + i * 10 + 4}.`);
|
|
609
609
|
}
|
|
610
610
|
try{
|
|
611
|
-
await this.deleteSwitchBoardProxy(_roomId * 1000 +
|
|
611
|
+
await this.deleteSwitchBoardProxy(_roomId * 1000 + i * 10 + 6);
|
|
612
612
|
} catch(err){
|
|
613
|
-
console.error(` ...: ${err}. Interrupting process of stopping
|
|
613
|
+
console.error(` ...: ${err}. Interrupting process of stopping one2manyMo script on port ${_roomId * 1000 + i * 10 + 6}.`);
|
|
614
614
|
}
|
|
615
615
|
try{
|
|
616
|
-
await this.deleteSwitchBoardProxy(_roomId * 1000 +
|
|
616
|
+
await this.deleteSwitchBoardProxy(_roomId * 1000 + i * 10 + 8);
|
|
617
617
|
} catch(err){
|
|
618
|
-
console.error(` ...: ${err}. Interrupting process of stopping
|
|
618
|
+
console.error(` ...: ${err}. Interrupting process of stopping one2manyBi script on port ${_roomId * 1000 + i * 10 + 8}.`);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
console.log(` <- stopped all ports for room ${_roomName}`);
|
package/lib/utils/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telemersive-bus",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.4.0",
|
|
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": {
|