diff --git a/backend/src/main/java/io/f1/backend/domain/game/websocket/controller/GameSocketController.java b/backend/src/main/java/io/f1/backend/domain/game/websocket/controller/GameSocketController.java index f53da1b5..91884cc9 100644 --- a/backend/src/main/java/io/f1/backend/domain/game/websocket/controller/GameSocketController.java +++ b/backend/src/main/java/io/f1/backend/domain/game/websocket/controller/GameSocketController.java @@ -10,6 +10,7 @@ import io.f1.backend.domain.game.dto.request.QuizChangeRequest; import io.f1.backend.domain.game.dto.request.RoundChangeRequest; import io.f1.backend.domain.game.dto.request.TimeLimitChangeRequest; +import io.f1.backend.domain.game.model.ConnectionState; import io.f1.backend.domain.user.dto.UserPrincipal; import lombok.RequiredArgsConstructor; @@ -38,7 +39,7 @@ public void initializeRoomSocket(@DestinationVariable Long roomId, Message me public void reconnect(@DestinationVariable Long roomId, Message message) { UserPrincipal principal = getSessionUser(message); - + roomService.changeConnectedStatus(principal.getUserId(), ConnectionState.CONNECTED); roomService.reconnectSendResponse(roomId, principal); }