chore: HttpAdapter

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

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)));