added node latency
This commit is contained in:
parent
e76ff4be85
commit
2b435cec23
@ -5,12 +5,13 @@ var shelljs = require('shelljs');
|
|||||||
|
|
||||||
var Primus = require('primus'),
|
var Primus = require('primus'),
|
||||||
Emitter = require('primus-emit'),
|
Emitter = require('primus-emit'),
|
||||||
|
Latency = require('primus-spark-latency'),
|
||||||
Socket;
|
Socket;
|
||||||
|
|
||||||
Socket = Primus.createSocket({
|
Socket = Primus.createSocket({
|
||||||
transformer: 'websockets',
|
transformer: 'websockets',
|
||||||
pathname: '/api',
|
pathname: '/api',
|
||||||
plugin: {emitter: Emitter}
|
plugin: {emitter: Emitter, sparkLatency: Latency}
|
||||||
});
|
});
|
||||||
|
|
||||||
var INSTANCE_NAME,
|
var INSTANCE_NAME,
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
"lodash": "^3.2.0",
|
"lodash": "^3.2.0",
|
||||||
"primus": "^2.4.12",
|
"primus": "^2.4.12",
|
||||||
"primus-emit": "^0.1.2",
|
"primus-emit": "^0.1.2",
|
||||||
|
"primus-spark-latency": "^0.1.1",
|
||||||
"shelljs": "^0.3.0",
|
"shelljs": "^0.3.0",
|
||||||
"ws": "^0.7.1"
|
"ws": "^0.7.1"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user