chore: HeartBeat

This commit is contained in:
手瓜一十雪
2024-08-10 16:58:40 +08:00
parent 0c747ab811
commit a14a193361
6 changed files with 39 additions and 10 deletions

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) => {