osc: bundle received osc every 5 ms to avoid adding more randomness to the messages order

This commit is contained in:
jean-emmanuel 2017-10-03 18:59:28 +02:00
parent d81f0007de
commit e42f14577d
2 changed files with 19 additions and 1 deletions

View file

@ -7,6 +7,12 @@ var init = require('./init'),
var callbacks = module.exports = {
bundle: function(data) {
for (let i in data) {
osc.receive(data[i])
}
},
receiveOsc: function(data){
osc.receive(data)
},