Skip to content
Snippets Groups Projects
Unverified Commit 13c326db authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

feat: add 45 min timeout on the gateway

parent c776e2e3
No related tags found
No related merge requests found
Pipeline #64642 failed with stages
in 3 minutes and 39 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment