You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Solution] So i found out that you can change the max listeners in the event emitter of the pubsub instance, like so:
constpubsub=newPostgresPubSub({host: 'localhost',port: process.env.DB_PORT ? parseInt(process.env.DB_PORT) : 5432,user: 'testuser',password: 'testpassword',database: 'whatsapp',});pubsub.ee.setMaxListeners(0);// raise max listeners in event emitter, 0 mean that is limited
Thanks for sharing.
Best regards,
The text was updated successfully, but these errors were encountered:
Hi
When more than 11 subscriptions occur we get the the node warning "MaxListenersExceededWarning: Possible EventEmitter memory leak detected."
The subscription server looks like this:
[Solution] So i found out that you can change the max listeners in the event emitter of the pubsub instance, like so:
Thanks for sharing.
Best regards,
The text was updated successfully, but these errors were encountered: