class PubSub
extends PubSubEngine
import { PubSub } from "https://deno.land/x/oak_graphql@0.6.4/graphql-subscriptions/index.ts";
Constructors
new
PubSub(options?: PubSubOptions)Methods
publish(triggerName: string, payload: any): Promise<void>
subscribe(triggerName: string, onMessage: (...args: any[]) => void): Promise<number>
unsubscribe(subId: number)