Skip to content

Commit

Permalink
fixup! fixup! chore(blockchain-link): use @trezor/websocket package
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlesisz committed Dec 6, 2024
1 parent 78b10c9 commit a603939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/blockchain-link/src/workers/baseWebsocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export abstract class BaseWebsocket<T extends Record<string, any>> extends Webso
private readonly subscriptions: Subscription<keyof T>[] = [];

async onPing() {
// make sure that connection is alive if there are subscriptions
if (this.subscriptions.length > 0 || this.options.keepAlive) {
await this.ping();
} else {
Expand Down

0 comments on commit a603939

Please sign in to comment.