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