ipc: remove woker, just handle queue in a separate loop, use a better io-parser, update deps
This commit is contained in:
parent
7770d01698
commit
547f66a2a2
6 changed files with 36 additions and 84 deletions
|
|
@ -3,7 +3,8 @@ var express = require('express')(),
|
|||
path = require('path'),
|
||||
http = require('http'),
|
||||
server = http.createServer(express),
|
||||
io = require('socket.io')(),
|
||||
customParser= require('socket.io-msgpack-parser'),
|
||||
io = require('socket.io')(server, {parser:customParser}),
|
||||
ipc = {},
|
||||
settings = require('./settings'),
|
||||
appAddresses = settings.read('appAddresses'),
|
||||
|
|
@ -16,9 +17,6 @@ express.get('*', function(req, res){
|
|||
res.sendFile(path.resolve(__dirname + '/../browser' + req.path))
|
||||
})
|
||||
|
||||
|
||||
io.listen(server)
|
||||
|
||||
server.listen(settings.read('httpPort'))
|
||||
|
||||
ipc.send = function(name,data,clientId) {
|
||||
|
|
|
|||
|
|
@ -10,10 +10,11 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"vmodule":"1.0.1",
|
||||
"electron-localshortcut": "1.1.1",
|
||||
"electron-localshortcut": "2.0.0",
|
||||
"osc": "2.2.0",
|
||||
"yargs": "8.0.1",
|
||||
"socket.io": "2.0.1",
|
||||
"yargs": "8.0.2",
|
||||
"socket.io": "2.0.3",
|
||||
"socket.io-msgpack-parser": "2.1.0",
|
||||
"express": "4.15.3",
|
||||
"jquery": "3.2.1",
|
||||
"chokidar": "1.7.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue