osc: handle osc error on bad messages reception

This commit is contained in:
jean-emmanuel 2016-10-11 17:05:49 +02:00
parent ad7fe6aeb8
commit 1acbc38723

View file

@ -21,6 +21,10 @@ oscServer.on('message', function (msg, bundle, info) {
if (debug) console.log('OSC received: ',data, 'From : ' + info.address + ':' + info.port)
})
oscServer.on('error', function (error) {
console.log(error)
})
oscServer.open()
@ -58,7 +62,7 @@ module.exports = {
address: path,
args: message
}, host, port);
if (debug) console.log('OSC sent: ',{path:path,args:message}, 'To : ' + host + ':' + port)
}