UNPKG

314 BTypeScriptView Raw
1import { Streaming, StreamingMessage } from "./streaming";
2
3export class Topic {
4 constructor(streaming: Streaming, name: string);
5
6 subscribe(listener: (streamingMessage: StreamingMessage) => void): any; // Faye Subscription
7 unsubscribe(listener: (streamingMessage: StreamingMessage) => void): Topic;
8}