chore: increase WebSocket response timeout from 5 to 15 seconds

This commit is contained in:
Adam Shiervani
2025-02-11 20:08:46 +01:00
parent 722e70f599
commit 8e29026017
+1 -1
View File
@@ -64,7 +64,7 @@ export const CreateSession = async (req: express.Request, res: express.Response)
const resp: any = await new Promise((res, rej) => {
timeout = setTimeout(() => {
rej(new Error("Timeout waiting for response from ws"));
}, 5000);
}, 15000);
// Hoist the res and rej functions to be used in the finally block for cleanup
wsRes = res;