For your information, here are the configuration:
GraphQL Module:
GraphQLModule.forRoot<ApolloDriverConfig>({
subscriptions: {
'graphql-ws': {
path: '/subscriptions',
},
},
});
In-Memory PubSub Service:
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
import { PubSub } from 'graphql-subscriptions';
@Injectable()
export class InMemoryPubSubService extends PubSub implements OnModuleInit {
private readonly logger = new Logger(InMemoryPubSubService.name);
...
}