Merge pull request #16 from jetkvm/fix/increase-timeout

Increase WebSocket response timeout from 5 to 15 seconds
This commit is contained in:
Adam Shiervani 2025-02-11 21:10:02 +01:00 committed by GitHub
commit e9191d7972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;