added node latency

This commit is contained in:
cubedro 2015-02-23 15:57:59 +02:00
parent e76ff4be85
commit 2b435cec23
2 changed files with 3 additions and 1 deletions

View File

@ -5,12 +5,13 @@ var shelljs = require('shelljs');
var Primus = require('primus'),
Emitter = require('primus-emit'),
Latency = require('primus-spark-latency'),
Socket;
Socket = Primus.createSocket({
transformer: 'websockets',
pathname: '/api',
plugin: {emitter: Emitter}
plugin: {emitter: Emitter, sparkLatency: Latency}
});
var INSTANCE_NAME,

View File

@ -13,6 +13,7 @@
"lodash": "^3.2.0",
"primus": "^2.4.12",
"primus-emit": "^0.1.2",
"primus-spark-latency": "^0.1.1",
"shelljs": "^0.3.0",
"ws": "^0.7.1"
},