Reset onLogs subscriptions when websocket disconnects

This commit is contained in:
steveluscher 2022-04-07 15:42:58 -07:00 committed by Steven Luscher
parent 781094edb2
commit 4dd3987451
1 changed files with 3 additions and 0 deletions

View File

@ -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),
);