0.2.10 0.2.9 up the initial connect timeout to 5 mintues, and reconnect to 2 seconds

tls
David Kebler 2019-03-24 11:46:00 -07:00
parent fbff2796c0
commit 1c3c4383c8
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@uci/socket",
"version": "0.2.8",
"version": "0.2.10",
"description": "JSON packet intra(named)/inter(TCP) host communication over socket",
"main": "src",
"scripts": {

View File

@ -47,8 +47,8 @@ class SocketConsumer extends Socket {
this.opts = opts
this.keepAlive = 'keepAlive' in opts ? opts.keepAlive : true
this._ready = false
this.timeout = opts.timeout || 30 // 5 minutes and then rejects
this.wait = opts.wait || 1
this.timeout = opts.timeout || 300 // 5 minutes and then rejects
this.wait = opts.wait || 2
this.stream = new JsonStream()
// bind to class for other class functions
this.connect = this.connect.bind(this)