update websocket
This commit is contained in:
@@ -41,6 +41,7 @@ import { WorkshopSubscriptionModule } from '../WorkshopSubscription/workshopsubs
|
||||
import { initContextCache } from '@pothos/core'
|
||||
import { PubSub } from 'graphql-subscriptions'
|
||||
import { isSubscription } from 'rxjs/internal/Subscription'
|
||||
import { EventEmitter } from 'ws'
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
@@ -147,7 +148,10 @@ import { isSubscription } from 'rxjs/internal/Subscription'
|
||||
},
|
||||
{
|
||||
provide: 'PUB_SUB',
|
||||
useFactory: () => new PubSub(),
|
||||
useFactory: () =>
|
||||
new PubSub({
|
||||
eventEmitter: new EventEmitter({}),
|
||||
}),
|
||||
},
|
||||
],
|
||||
exports: [
|
||||
|
||||
Reference in New Issue
Block a user