diff --git a/package.json b/package.json index c98f753..e3996a7 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dependencies": { "node-uuid": "^1.4.3", "q": "1.4.1", - "socket.io-client": "^1.3.7", + "socket.io-client": "^0.9.9", "sprintf": "^0.1.5" }, "main": "loader.js", diff --git a/src/client.js b/src/client.js index 97483f0..2bce01d 100644 --- a/src/client.js +++ b/src/client.js @@ -33,10 +33,11 @@ class LoaderClient extends EventEmitter{ * @returns {*|promise} */ connect(){ - this._socket = io(this.endpoint, { - transports: ['websocket'], - secure: true - } + this._socket = io.connect(this.endpoint + //{ + // transports: ['websocket'], + // secure: true + //} ); this._socket.on('connect', this._onConnected.bind(this)); this._socket.on('disconnect', this._onDisconnected.bind(this)); diff --git a/src/profile_container.js b/src/profile_container.js index 2f6fe9e..64999da 100644 --- a/src/profile_container.js +++ b/src/profile_container.js @@ -39,7 +39,7 @@ class ProfileContainer{ if(!promise) this.handleError('No promise returned by profile: '+this.profilePath); - promise.timeout(60000) + promise.timeout(120000) .then(() => { process.send({stats: this.client.stats.stats, time: this.time}); },(err) => {