Open AlexKarlsen opened 3 years ago
The interface defined in graphql-subscription@1.2.1 has changed to the following:
graphql-subscription@1.2.1
export abstract class PubSubEngine { public abstract publish(triggerName: string, payload: any): Promise<void>; public abstract subscribe(triggerName: string, onMessage: Function, options: Object): Promise<number>; public abstract unsubscribe(subId: number); public asyncIterator<T>(triggers: string | string[]): AsyncIterator<T> { return new PubSubAsyncIterator<T>(this, triggers); } }
In the currently used version of graphql-subscription@0.4.4 the interface of the publish method is:
graphql-subscription@0.4.4
publish
export abstract class PubSubEngine { public abstract publish(triggerName: string, payload: any): boolean; ... }
This should of course be changed to:
export abstract class PubSubEngine { public abstract publish(triggerName: string, payload: any): Promise<void><; ... }
The interface defined in
graphql-subscription@1.2.1
has changed to the following:In the currently used version of
graphql-subscription@0.4.4
the interface of thepublish
method is:This should of course be changed to: