diff --git a/lib/node.js b/lib/node.js index 1be282e..612acb4 100644 --- a/lib/node.js +++ b/lib/node.js @@ -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, diff --git a/package.json b/package.json index 1195f10..9f114f2 100644 --- a/package.json +++ b/package.json @@ -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" },