From 593dbb4b0c00090e09fe726eb2c5f0bd348f2acb Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 2 Jun 2015 05:29:16 +0300 Subject: [PATCH] increased max socket reconnect attempts --- lib/node.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/node.js b/lib/node.js index c76ee8f..1ab2e4f 100644 --- a/lib/node.js +++ b/lib/node.js @@ -40,6 +40,9 @@ Socket = Primus.createSocket({ pathname: '/api', timeout: 120000, strategy: 'disconnect,online,timeout', + reconnect: { + retries: 30 + }, plugin: {emitter: Emitter, sparkLatency: Latency} });