GraphQL Subscriptions: Max Listeners Exceeded Warning
问题 We are using GraphQL Subscriptions and pubsub to subscribe to posts. When more than 10 subscriptions occur we get the the node warning "MaxListenersExceededWarning: Possible EventEmitter memory leak detected." Is it possible to raise the max listeners in the pubsub class? The pubsub class is inside a separate module and looks like this: import { PubSub } from 'graphql-subscriptions'; const pubsub = new PubSub(); export { pubsub }; The subscription server looks like this: import {