Skip to content

Commit

Permalink
fix: pass private methods for public access
Browse files Browse the repository at this point in the history
getGenerateSocketData for #generateSocketData
getProcessData for #processData
  • Loading branch information
JS-AK committed Feb 2, 2023
1 parent 929597c commit 7ddde70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/asterisk-ami-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ export class AsteriskAmiAdapter extends EventEmitter {
}
}

getGenerateSocketData = this.#generateSocketData;

getProcessData = this.#processData;

sendAction(data: Types.TAmiMessageIn, callback: Types.TCallBack) {
if (!this.#isReady) {
return this.#logger.warn("Connection is not established");
Expand Down

0 comments on commit 7ddde70

Please sign in to comment.