Skip to content

Commit 4e25300

Browse files
committed
feat(nats): log new connection_lost event
1 parent 518de3b commit 4e25300

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node-nats-streaming-buffered-client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ export class NatsBufferedClient extends EventEmitter
213213
resolve( true );
214214
} );
215215

216+
this.stan.on( 'connection_lost', ( error ) =>
217+
{
218+
this.logger.log( '[NATS-BUFFERED-CLIENT] Connection was lost to server', error );
219+
} );
220+
216221
this.stan.on( 'error', ( error ) =>
217222
{
218223
this.logger.error( '[NATS-BUFFERED-CLIENT] Server error', error );

0 commit comments

Comments
 (0)