0.2.10 0.2.9 up the initial connect timeout to 5 mintues, and reconnect to 2 seconds
parent
fbff2796c0
commit
1c3c4383c8
|
@ -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": {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue