custom-module: strict clientId detect

This commit is contained in:
bordun 2020-03-30 18:09:41 +02:00
parent 92f321381d
commit 7e66b67f9a

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)