Skip to content

Commit

Permalink
feat: check heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeeeeeh committed Dec 4, 2024
1 parent 307832d commit c1e14b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/chatServer/src/chat/chat.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {};

Expand Down

0 comments on commit c1e14b4

Please sign in to comment.