feat: a framework of passive (正向) websocket

This commit is contained in:
Wesley F. Young
2024-08-10 14:40:51 +08:00
parent 33ef3e7d59
commit 8060b1c753
3 changed files with 77 additions and 2 deletions

View File

@@ -4,4 +4,6 @@ import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
export interface IOB11NetworkAdapter {
registerAction<T extends BaseAction<P, R>, P, R>(action: T): void;
onEvent<T extends OB11BaseEvent>(event: T): void;
open(): void | Promise<void>;
close(): void | Promise<void>;
}