Skip to content

Commit

Permalink
fix(client): always emit base 'api' event
Browse files Browse the repository at this point in the history
  • Loading branch information
prlanzarin committed May 4, 2021
1 parent 22a34fb commit bd43005
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/MCSBaseClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class MCSBaseClient extends MCSBase {

receiver.on('api', (name, args) => {
this.emit(name, args);
this.emit('api', name, args);
this._triggerCallback(name, args);
this._unregisterEvents(name, args);
});
Expand Down

0 comments on commit bd43005

Please sign in to comment.