primus bump

This commit is contained in:
Konstantin 2016-10-18 19:45:35 +03:00
parent 744b0697d5
commit d0b5adc965
3 changed files with 14 additions and 14 deletions

3
.gitignore vendored
View File

@ -10,4 +10,5 @@ config/nodes.js
*.swp *.swp
*.pem *.pem
.node-xmlhttprequest-* .node-xmlhttprequest-*
ws_secret.json ws_secret.json
stats.json

8
app.js
View File

@ -54,8 +54,8 @@ api = new Primus(server, {
parser: 'JSON' parser: 'JSON'
}); });
api.use('emit', require('primus-emit')); api.plugin('emit', require('primus-emit'));
api.use('spark-latency', require('primus-spark-latency')); api.plugin('spark-latency', require('primus-spark-latency'));
// Init Client Socket connection // Init Client Socket connection
@ -65,7 +65,7 @@ client = new Primus(server, {
parser: 'JSON' parser: 'JSON'
}); });
client.use('emit', require('primus-emit')); client.plugin('emit', require('primus-emit'));
// Init external API // Init external API
@ -75,7 +75,7 @@ external = new Primus(server, {
parser: 'JSON' parser: 'JSON'
}); });
external.use('emit', require('primus-emit')); external.plugin('emit', require('primus-emit'));
// Init collections // Init collections
var Collection = require('./lib/collection'); var Collection = require('./lib/collection');

View File

@ -17,19 +17,19 @@
"debug": "2.2.0", "debug": "2.2.0",
"express": "4.13.3", "express": "4.13.3",
"geoip-lite": "1.1.6", "geoip-lite": "1.1.6",
"jade": "1.11.0",
"lodash": "3.10.1",
"primus": "3.2.1",
"primus-emit": "0.1.2",
"primus-spark-latency": "0.1.1",
"ws": "0.8.1",
"grunt": "^0.4.5", "grunt": "^0.4.5",
"grunt-contrib-clean": "^0.6.0", "grunt-contrib-clean": "^0.6.0",
"grunt-contrib-concat": "^0.5.1", "grunt-contrib-concat": "^0.5.1",
"grunt-contrib-copy": "^0.8.0", "grunt-contrib-copy": "^0.8.0",
"grunt-contrib-cssmin": "^0.12.3", "grunt-contrib-cssmin": "^0.12.3",
"grunt-contrib-jade": "^0.14.1", "grunt-contrib-jade": "^0.14.1",
"grunt-contrib-uglify": "^0.9.1" "grunt-contrib-uglify": "^0.9.1",
"jade": "1.11.0",
"lodash": "3.10.1",
"primus": "^6.0.3",
"primus-emit": "^1.0.0",
"primus-spark-latency": "^0.1.1",
"ws": "^1.1.1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -47,6 +47,5 @@
} }
], ],
"license": "LGPL-3.0", "license": "LGPL-3.0",
"devDependencies": { "devDependencies": {}
}
} }