Skip to content

Commit

Permalink
fix: Add disconnect message on connection lost
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro committed Aug 10, 2022
1 parent 8300a29 commit 3a5aeeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pubsub/src/Providers/MqttOverWSProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export class MqttOverWSProvider extends AbstractPubSubProvider {
errorCode: number;
}) => {
this.onDisconnect({ clientId, errorCode, ...args });
this.connectionStateMonitor.record(CONNECTION_CHANGE.CLOSED);
};

await new Promise((resolve, reject) => {
Expand Down

0 comments on commit 3a5aeeb

Please sign in to comment.