From 1acbc387231486cf34b64a60d95e31df1fcf3a6a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 11 Oct 2016 17:05:49 +0200 Subject: [PATCH] osc: handle osc error on bad messages reception --- app/main/osc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main/osc.js b/app/main/osc.js index 15197a72..1481bf86 100644 --- a/app/main/osc.js +++ b/app/main/osc.js @@ -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) }