try to send osc as timestamped bundle
This commit is contained in:
parent
ba095d8e7f
commit
0bfbd87bbf
2 changed files with 11 additions and 5 deletions
|
|
@ -28,10 +28,13 @@ console.log('websocket server running on port', config.wsServer.port);
|
|||
|
||||
// listen for messages from the client
|
||||
osc.on('*', (m) => {
|
||||
// forward message to supercollider??
|
||||
console.log("hmm!");
|
||||
const ts = m.args.shift();
|
||||
const message = new OSC.Message(m.address, ...m.args);
|
||||
osc.send(message); // will it even be received??
|
||||
console.log('forward:', m.address, m.args);
|
||||
console.log(m.args);
|
||||
const bundle = new OSC.Bundle([message], new Date(ts))
|
||||
osc.send(bundle);
|
||||
console.log('forward:', bundle);
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue