We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 307832d commit c1e14b4Copy full SHA for c1e14b4
backend/chatServer/src/chat/chat.gateway.ts
@@ -30,7 +30,11 @@ import {
30
import { QuestionDto } from '../event/dto/Question.dto';
31
import { ChatException, CHATTING_SOCKET_ERROR } from './chat.error';
32
33
-@WebSocketGateway({ cors: true })
+@WebSocketGateway({
34
+ cors: true,
35
+ pingInterval: 30000,
36
+ pingTimeout: 10000,
37
+})
38
export class ChatGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
39
constructor(private roomService: RoomService) {};
40
0 commit comments