Skip to content

Commit

Permalink
Adding disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
y3fers0n committed Oct 2, 2024
1 parent a2190ba commit 22233f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/ton/TonBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ export class TonBridge implements TonConnectBridge {
});
}

async disconnect() {
await this.provider.send('tonConnect_disconnect', {});

return this.emit({
event: 'disconnect',
payload: {},
});
}

/**
* Return and call callbacks
* @param event
Expand Down

0 comments on commit 22233f6

Please sign in to comment.