Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_graphql/graphql-subscriptions/index.ts>PubSubEngine

A simple graphql middleware for oak deno framework.
Latest
class PubSubEngine
Abstract
import { PubSubEngine } from "https://deno.land/x/oak_graphql@0.6.4/graphql-subscriptions/index.ts";

Methods

asyncIterator<T>(triggers: string | string[]): AsyncIterator<T>
abstract
publish(triggerName: string, payload: any): Promise<void>
abstract
subscribe(
triggerName: string,
onMessage: Function,
options: Object,
): Promise<number>
abstract
unsubscribe(subId: number): any