mirror of
https://github.com/jetkvm/cloud-api.git
synced 2025-09-16 08:38:15 +00:00
Merge pull request #16 from jetkvm/fix/increase-timeout
Increase WebSocket response timeout from 5 to 15 seconds
This commit is contained in:
commit
e9191d7972
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user