From c1e14b40734b2d624f23db36e62b81dae6e5f118 Mon Sep 17 00:00:00 2001 From: hoeeeeeh Date: Wed, 4 Dec 2024 16:59:27 +0900 Subject: [PATCH] feat: check heartbeat --- backend/chatServer/src/chat/chat.gateway.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/chatServer/src/chat/chat.gateway.ts b/backend/chatServer/src/chat/chat.gateway.ts index e13c9dae..ceaadb69 100644 --- a/backend/chatServer/src/chat/chat.gateway.ts +++ b/backend/chatServer/src/chat/chat.gateway.ts @@ -30,7 +30,11 @@ import { import { QuestionDto } from '../event/dto/Question.dto'; import { ChatException, CHATTING_SOCKET_ERROR } from './chat.error'; -@WebSocketGateway({ cors: true }) +@WebSocketGateway({ + cors: true, + pingInterval: 30000, + pingTimeout: 10000, +}) export class ChatGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect { constructor(private roomService: RoomService) {};