Closed wd closed 6 years ago
I'm working in a full rewrite of this library. I could expose the retriesCount but that count should be:
I would use the second option
I agree, or maybe you can add both. Thanks.
Exposed retryCount
in latest version. Thanks
this._uptimeTimeout = setTimeout(()=>this._acceptOpen(), minUptime);
Here https://github.com/pladaria/reconnecting-websocket/blob/master/dist/reconnecting-websocket-cjs.js#L307 should be used an arrow function, otherwise this
in _acceptOpen
will be undefined.
Cannot set property '_retryCount' of undefined
_acceptOpen reconnecting-websocket-cjs.js:301:8<unknown>
Will you consider to expose
retriesCount
to user ? So that users can show this count somewhere.