mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
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;
|
|
}
|