From 13c326dbf8b513ed751f1eb015e09b6bf31403ef Mon Sep 17 00:00:00 2001 From: Zdravko Iliev <zdravko.iliev@vereign.com> Date: Mon, 14 Aug 2023 11:17:52 +0300 Subject: [PATCH] feat: add 45 min timeout on the gateway --- apps/gateway/src/app/events.gateway.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/gateway/src/app/events.gateway.ts b/apps/gateway/src/app/events.gateway.ts index b29decd9..078b0a82 100644 --- a/apps/gateway/src/app/events.gateway.ts +++ b/apps/gateway/src/app/events.gateway.ts @@ -2,7 +2,12 @@ import { WebSocketGateway, WebSocketServer } from "@nestjs/websockets"; import { Server, WebSocket } from "ws"; import { CloudEventDto } from "@ocm-engine/dtos"; -@WebSocketGateway() +@WebSocketGateway({ + cors: { + origin: "*", //set this with a config env + }, + connectionTimeout: 45_000_000, //set this with a config env, higher value is needed for QA +}) export class EventsGateway { @WebSocketServer() server: Server; -- GitLab