zeroconf: publish tcp
This commit is contained in:
parent
2163f19198
commit
02a730f82f
1 changed files with 10 additions and 0 deletions
|
|
@ -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}`)
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue