Skip to content

Commit

Permalink
Tweak a callback function name
Browse files Browse the repository at this point in the history
  • Loading branch information
platfowner committed Jul 18, 2024
1 parent 6297ecf commit 455ca14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class Handler {

async connect(connectionCb?: ConnectionCallback, disconnectionCb?: DisconnectionCallback) {
this.checkEventManager();
await this.ain.getEventManager().connect(connectionCb, this.connectionRetry.bind(this, connectionCb, disconnectionCb));
await this.ain.getEventManager().connect(connectionCb, this.connectionRetryCb.bind(this, connectionCb, disconnectionCb));
console.log('connected');
};

Expand All @@ -36,7 +36,7 @@ export default class Handler {
console.log('Disconnected');
}

private async connectionRetry(connectionCb?: ConnectionCallback, disconnectionCb?: DisconnectionCallback, webSocket?: any) {
private async connectionRetryCb(connectionCb?: ConnectionCallback, disconnectionCb?: DisconnectionCallback, webSocket?: any) {
try {
if (disconnectionCb) {
disconnectionCb(webSocket);
Expand Down

0 comments on commit 455ca14

Please sign in to comment.