custom-module: strict clientId detect

This commit is contained in:
bordun 2020-03-30 18:09:41 +02:00
parent 0b9c16a8f2
commit b2079c4e9e

View file

@ -58,7 +58,7 @@ class OscServer {
}
var lastArg = args[args.length - 1],
options = {}
if (typeof lastArg === 'object' && lastArg !== null && lastArg.type === undefined) {
if (typeof lastArg === 'object' && lastArg !== null && lastArg.clientId !== undefined) {
options = args.pop()
}
this.receiveOsc({host, port, address, args:args.map(x=>this.parseArg(x))}, options.clientId)