chore: HttpAdapter

This commit is contained in:
手瓜一十雪 committed 2024-08-11 00:35:39 +08:00
1 parent bd0f63020f
commit f770dc7771
3 files changed
+16 -5

No files matched your search

+3 -1
View File
@@ -20,7 +20,9 @@ export class OB11NetworkManager {
async getAllAdapters() {
return this.adapters;
}
async openAllAdapters() {
return Promise.all(this.adapters.map(adapter => adapter.open()));
}
async emitEvent(event: OB11EmitEventContent) {
// Mlikiowa V2.0.0 Refactor Todo
return Promise.all(this.adapters.map(adapter => adapter.onEvent(event)));