Skip to content

Commit

Permalink
Merge pull request #291 from boostcampwm-2024/dev-be
Browse files Browse the repository at this point in the history
feat: check heartbeat
  • Loading branch information
hoeeeeeh authored Dec 4, 2024
2 parents 0111420 + c1e14b4 commit 2ee5af8
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 2ee5af8

Please sign in to comment.