hatch
Version:
Eve events over the wire using HTTP EventSource
11 lines (10 loc) • 373 B
TypeScript
/// <reference types="node" />
import { EventChannel } from './channel';
import { Server } from 'http';
interface HatchOpts {
baseUrl?: string;
heartbeatInterval?: number;
}
export declare const hatch: (server: Server, opts?: HatchOpts | undefined) => Server;
export declare const waitFor: (id: string, onReady: (channel: EventChannel) => void) => void;
export {};