feat: a framework of passive (正向) websocket
This commit is contained in:
1 parent
95615a868d
commit
b39bc8828d
3 files changed
+77
-2
No files matched your search
@@ -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>;
|
||||
}
|
||||
Reference in new issue
Block a user