Skip to content

Commit b711fa9

Browse files
committed
Reset webSockerServer options
1 parent 583eaf3 commit b711fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/server/api/websocket.gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class WebsocketGateway implements OnModuleInit, OnModuleDestroy {
5353
this.webSocketServer.ws(`${this.config.TLDRAW_WEBSOCKET_PATH}/:room`, {
5454
compression: SHARED_COMPRESSOR,
5555
maxPayloadLength: 100 * 1024 * 1024,
56-
idleTimeout: 10,
57-
sendPingsAutomatically: false,
56+
idleTimeout: 60,
57+
sendPingsAutomatically: true,
5858
upgrade: (res, req, context) => this.upgradeCallback(res, req, context),
5959
open: (ws: WebSocket<YRedisUser>) => this.openCallback(ws),
6060
message: (ws, messageBuffer) => this.messageCallback(ws, messageBuffer),

0 commit comments

Comments
 (0)