mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 12:01:16 -08:00
538984dc2f
Co-authored-by: Matthijs Knigge <matthijs@volcano.nl>
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import type { PushRequest, PushResponse } from './push/types';
|
|
|
|
declare module 'sse-channel' {
|
|
declare class Channel {
|
|
constructor();
|
|
|
|
on(event: string, handler: (channel: string, res: PushResponse) => void): void;
|
|
|
|
removeClient: (res: PushResponse) => void;
|
|
|
|
addClient: (req: PushRequest, res: PushResponse) => void;
|
|
|
|
send: (msg: string, clients?: PushResponse[]) => void;
|
|
}
|
|
|
|
export = Channel;
|
|
}
|