zeroconf: display more gentle errors
This commit is contained in:
parent
71d21062cf
commit
b3ec24e28f
2 changed files with 6 additions and 2 deletions
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue