chore: HeartBeat

This commit is contained in:
手瓜一十雪 committed 2024-08-10 16:58:40 +08:00
1 parent 3269061db4
commit b5d24d751d
6 files changed
+39 -10

No files matched your search

+3 -1
View File
@@ -48,7 +48,9 @@ export class OB11PassiveWebSocketAdapter implements IOB11NetworkAdapter {
registerAction<T extends BaseAction<P, R>, P, R>(action: T) {
this.actionMap.set(action.actionName, action);
}
registerHeartBeat() {
//WS正向心跳
}
onEvent<T extends OB11BaseEvent>(event: T) {
this.wsClientsMutex.runExclusive(async () => {
this.wsClients.forEach((wsClient) => {