feat: a framework of passive (正向) websocket

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

No files matched your search

+2
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>;
}