remote control: add /EDIT/GET, and a nosync flag in server/osc/sending method to prevent broadcasting

This commit is contained in:
jean-emmanuel 2017-12-21 07:09:11 +01:00
parent 185d4c6b80
commit a263233bbd
3 changed files with 22 additions and 3 deletions

View file

@ -192,7 +192,7 @@ module.exports = {
var targets = []
if (settings.read('syncTargets')) Array.prototype.push.apply(targets, settings.read('syncTargets'))
if (settings.read('syncTargets') && !data.nosync) Array.prototype.push.apply(targets, settings.read('syncTargets'))
if (data.target) Array.prototype.push.apply(targets, data.target)
@ -226,7 +226,7 @@ module.exports = {
}
clients[clientId].broadcast.emit('receiveOsc', data)
if (!data.nosync) clients[clientId].broadcast.emit('receiveOsc', data)
},