UNPKG

445 BTypeScriptView Raw
1import { PubSubAsyncIterableIterator } from './pubsub-async-iterable-iterator';
2export declare abstract class PubSubEngine {
3 abstract publish(triggerName: string, payload: any): Promise<void>;
4 abstract subscribe(triggerName: string, onMessage: Function, options: Object): Promise<number>;
5 abstract unsubscribe(subId: number): any;
6 asyncIterableIterator<T>(triggers: string | readonly string[]): PubSubAsyncIterableIterator<T>;
7}