tardis-dev
Advanced tools
Comparing version 9.0.1 to 9.0.2
@@ -31,3 +31,3 @@ "use strict"; | ||
} | ||
this.debug('estabilished connection'); | ||
this.debug('(connection id: %d) estabilished connection', RealTimeFeedBase._connectionId); | ||
this.onConnected(); | ||
@@ -46,3 +46,3 @@ //wait before fetching snapshots until we're sure we've got proper connection estabilished (received some messages) | ||
catch (e) { | ||
this.debug('providing manual snapshots error: %o', e); | ||
this.debug('(connection id: %d) providing manual snapshots error: %o', RealTimeFeedBase._connectionId, e); | ||
this._ws.emit('error', e); | ||
@@ -52,3 +52,3 @@ } | ||
this._onConnectionClosed = () => { | ||
this.debug('connection closed'); | ||
this.debug('(connection id: %d) connection closed', RealTimeFeedBase._connectionId); | ||
}; | ||
@@ -167,3 +167,3 @@ this.debug = debug_1.default(`tardis-dev:realtime:${exchange}`); | ||
if (this._receivedMessagesCount === 0) { | ||
this.debug('did not received any messages within %d ms timeout, terminating connection...', this._timeoutIntervalMS); | ||
this.debug('(connection id: %d) did not received any messages within %d ms timeout, terminating connection...', RealTimeFeedBase._connectionId, this._timeoutIntervalMS); | ||
this._ws.terminate(); | ||
@@ -170,0 +170,0 @@ } |
{ | ||
"name": "tardis-dev", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -194,3 +194,7 @@ import dbg from 'debug' | ||
if (this._receivedMessagesCount === 0) { | ||
this.debug('did not received any messages within %d ms timeout, terminating connection...', this._timeoutIntervalMS) | ||
this.debug( | ||
'(connection id: %d) did not received any messages within %d ms timeout, terminating connection...', | ||
RealTimeFeedBase._connectionId, | ||
this._timeoutIntervalMS | ||
) | ||
this._ws!.terminate() | ||
@@ -219,3 +223,3 @@ } | ||
this.debug('estabilished connection') | ||
this.debug('(connection id: %d) estabilished connection', RealTimeFeedBase._connectionId) | ||
@@ -237,3 +241,3 @@ this.onConnected() | ||
} catch (e) { | ||
this.debug('providing manual snapshots error: %o', e) | ||
this.debug('(connection id: %d) providing manual snapshots error: %o', RealTimeFeedBase._connectionId, e) | ||
this._ws!.emit('error', e) | ||
@@ -244,4 +248,4 @@ } | ||
private _onConnectionClosed = () => { | ||
this.debug('connection closed') | ||
this.debug('(connection id: %d) connection closed', RealTimeFeedBase._connectionId) | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
618554
10918