Skip to content

Commit c1e14b4

Browse files
committed
feat: check heartbeat
1 parent 307832d commit c1e14b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/chatServer/src/chat/chat.gateway.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ import {
3030
import { QuestionDto } from '../event/dto/Question.dto';
3131
import { ChatException, CHATTING_SOCKET_ERROR } from './chat.error';
3232

33-
@WebSocketGateway({ cors: true })
33+
@WebSocketGateway({
34+
cors: true,
35+
pingInterval: 30000,
36+
pingTimeout: 10000,
37+
})
3438
export class ChatGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
3539
constructor(private roomService: RoomService) {};
3640

0 commit comments

Comments
 (0)