|
@@ -29,7 +29,7 @@ app.post('/json', function (req, res) {
|
|
|
|
|
|
const aliveMessage = [ '/tuio/2Dcur', 'alive' ].concat(alive);
|
|
|
oscBundle = new Bundle(
|
|
|
- [ '/tuio/2Dcur', 'source', 'tangibles@127.0.0.1' ],
|
|
|
+ [ '/tuio/2Dcur', 'source', `tangibles${req.body.section.toString()}@127.0.0.1` ],
|
|
|
aliveMessage,
|
|
|
[ '/tuio/2Dcur', 'fseq', fseq ],
|
|
|
[
|
|
@@ -43,7 +43,7 @@ app.post('/json', function (req, res) {
|
|
|
alive.splice(index, 1);
|
|
|
if (alive.length === 0) {
|
|
|
oscBundle = new Bundle(
|
|
|
- [ '/tuio/2Dcur', 'source', 'tangibles@127.0.0.1' ],
|
|
|
+ [ '/tuio/2Dcur', 'source', `tangibles${req.body.section.toString()}@127.0.0.1` ],
|
|
|
[ '/tuio/2Dcur', 'alive' ],
|
|
|
[ '/tuio/2Dcur', 'fseq', fseq ]
|
|
|
);
|
|
@@ -69,7 +69,7 @@ app.post('/json', function (req, res) {
|
|
|
});
|
|
|
|
|
|
oscBundle = new Bundle(
|
|
|
- [ '/tuio/2Dcur', 'source', 'tangibles@127.0.0.1' ],
|
|
|
+ [ '/tuio/2Dcur', 'source', `tangibles${req.body.section.toString()}@127.0.0.1` ],
|
|
|
aliveMessage,
|
|
|
[ '/tuio/2Dcur', 'fseq', fseq ]
|
|
|
);
|