ipc: remove socket.io, rewrite ultra slim ipc

This commit is contained in:
jean-emmanuel 2018-02-08 23:21:02 +01:00
parent ef51702c05
commit a582bb2040
11 changed files with 317 additions and 41 deletions

View file

@ -135,7 +135,7 @@ module.exports = {
},
sessionOpened: function(data, clientId) {
clients[clientId].broadcast.emit('stateSend')
ipc.send('stateSend', null, null, clientId)
},
savingSession: function(data, clientId) {
@ -158,7 +158,8 @@ module.exports = {
data.args = data.preArgs ? data.preArgs.concat(value) : [value]
if (!data.noSync) clients[clientId].broadcast.emit('receiveOsc', data)
if (!data.noSync) ipc.send('receiveOsc', data, null, clientId)
},
@ -214,7 +215,7 @@ module.exports = {
}
if (!data.noSync) clients[clientId].broadcast.emit('receiveOsc', data)
if (!data.noSync) ipc.send('receiveOsc', data, null, clientId)
},