Skip to content

Commit

Permalink
Remove setMaxListeners (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Aug 22, 2018
1 parent 043733c commit c71abaf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/primus/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ function configurePrimus (config, configurer) {
app.channel(app.channels).leave(getParams(spark));
}
});

// In Feathers it is easy to hit the standard Node warning limit
// of event listeners (e.g. by registering 10 services).
// So we set it to a higher number. 64 should be enough for everyone.
primus.setMaxListeners(64);
}

if (typeof configurer === 'function') {
Expand Down

0 comments on commit c71abaf

Please sign in to comment.