UNPKG

hatch

Version:

Eve events over the wire using HTTP EventSource

9 lines (8 loc) 259 B
/// <reference types="node" /> import { EventEmitter } from 'events'; export declare class HatchClient extends EventEmitter { private readonly id; private readonly source; constructor(id: string, source: EventSource); private handleMessage; }