zeroconf: display more gentle errors

This commit is contained in:
jean-emmanuel 2018-01-25 14:05:59 +01:00
parent 87dff7ad72
commit bcdc8fa6ec
2 changed files with 6 additions and 2 deletions

View file

@ -23,6 +23,8 @@ zeroconf.publish({
protocol: 'udp',
type: 'osc',
port: oscInPort
}).on('error', (e)=>{
console.error(`Error: Zeroconf: ${e.message}`)
})
var parseType = function(type){

View file

@ -28,13 +28,15 @@ express.get('*', function(req, res){
}
})
server.listen(settings.read('httpPort'))
zeroconf.publish({
name: settings.read('appName') + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''),
type: 'http',
port: settings.read('httpPort')
})
}).on('error', (e)=>{
console.error(`Error: Zeroconf: ${e.message}`)
})
ipc.send = function(name,data,clientId) {
if (clientId) {