Skip to content

Commit 355d2cc

Browse files
authored
🐛 fix: 새로고침 시 connected 로 변경
1 parent 732a651 commit 355d2cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/main/java/io/f1/backend/domain/game/websocket/controller/GameSocketController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import io.f1.backend.domain.game.dto.request.QuizChangeRequest;
1111
import io.f1.backend.domain.game.dto.request.RoundChangeRequest;
1212
import io.f1.backend.domain.game.dto.request.TimeLimitChangeRequest;
13+
import io.f1.backend.domain.game.model.ConnectionState;
1314
import io.f1.backend.domain.user.dto.UserPrincipal;
1415

1516
import lombok.RequiredArgsConstructor;
@@ -38,7 +39,7 @@ public void initializeRoomSocket(@DestinationVariable Long roomId, Message<?> me
3839
public void reconnect(@DestinationVariable Long roomId, Message<?> message) {
3940

4041
UserPrincipal principal = getSessionUser(message);
41-
42+
roomService.changeConnectedStatus(principal.getUserId(), ConnectionState.CONNECTED);
4243
roomService.reconnectSendResponse(roomId, principal);
4344
}
4445

0 commit comments

Comments
 (0)