From 953eac1533ed0f0b2af564a77214772fc766c277 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 25 May 2018 13:42:42 +0200 Subject: [PATCH] zeroconf: publish tcp --- app/main/osc/tcp.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/main/osc/tcp.js b/app/main/osc/tcp.js index 9cab67d0..8cfd26b2 100644 --- a/app/main/osc/tcp.js +++ b/app/main/osc/tcp.js @@ -114,6 +114,16 @@ class OscTCPServer extends EventEmitter { } + zeroconf.publish({ + name: settings.read('appName') + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''), + protocol: 'tcp', + type: 'osc', + port: tcpInPort + }).on('error', (e)=>{ + console.error(`Error: Zeroconf: ${e.message}`) + }) + + } }