From c38e980375dc5b24931088fc9945d94ac3db12c3 Mon Sep 17 00:00:00 2001 From: exane Date: Fri, 3 Jul 2015 11:42:13 +0200 Subject: [PATCH] testing monitor tools --- package.json | 2 ++ server/server.js | 13 +------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 02ccd7e..24e232e 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,8 @@ "express": "4.12.3", "jquery-deferred": "^0.3.0", "minimist": "1.1.0", + "monitor": "^0.6.10", + "monitor-dashboard": "^0.6.7", "serve-static": "1.8.0", "shortid": "^2.2.2", "socket.io": "^1.3.5", diff --git a/server/server.js b/server/server.js index 4aa8167..2781ca8 100644 --- a/server/server.js +++ b/server/server.js @@ -1,17 +1,6 @@ var argv = require('minimist')(process.argv.slice(2)); -/*var SocketCluster = require('socketcluster').SocketCluster;*/ -/* -var socketCluster = new SocketCluster({ - workers: Number(argv.w) || 1, - stores: Number(argv.s) || 1, - port: Number(argv.p) || 16918, - appName: argv.n || null, - workerController: __dirname + '/worker.js', - storeController: __dirname + '/store.js', - socketChannelLimit: 100, - rebootWorkerOnCrash: argv['auto-reboot'] != false -});*/ +require("monitor").start(); global.connections = require("./Connections")();