Skip to content

Commit

Permalink
Reset onLogs subscriptions when websocket disconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Apr 7, 2022
1 parent 781094e commit 4dd3987
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web3.js/src/connection.ts
Expand Up @@ -4154,6 +4154,9 @@ export class Connection {
Object.values(this._accountChangeSubscriptions).forEach(
s => (s.subscriptionId = null),
);
Object.values(this._logsSubscriptions).forEach(
s => (s.subscriptionId = null),
);
Object.values(this._programAccountChangeSubscriptions).forEach(
s => (s.subscriptionId = null),
);
Expand Down

0 comments on commit 4dd3987

Please sign in to comment.