hatch
Version:
Eve events over the wire using HTTP EventSource
13 lines (12 loc) • 319 B
TypeScript
interface ChannelHandlers {
onClose: () => void;
}
export declare class EventChannel {
private readonly id;
private readonly handlers;
private readonly baseArgs;
constructor(id: string, handlers: ChannelHandlers);
emit(inputName: string, ...values: any[]): void;
close(): void;
}
export {};