Skip to content

Commit

Permalink
increased number of max event listeners for api services
Browse files Browse the repository at this point in the history
  • Loading branch information
seeden committed Aug 17, 2023
1 parent 717eb14 commit 44f13f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/src/services/Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export default abstract class Service extends EventEmitter {
this.name = name;
this.origin = origin ?? client.origin;

this.setMaxListeners(100);

client.on('message', this.handleMessage);

this.#readyPromise = new Promise((resolve, reject) => {
Expand Down

0 comments on commit 44f13f2

Please sign in to comment.