Skip to content

Commit e9191d7

Browse files
Merge pull request #16 from jetkvm/fix/increase-timeout
Increase WebSocket response timeout from 5 to 15 seconds
2 parents 722e70f + 8e29026 commit e9191d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webrtc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const CreateSession = async (req: express.Request, res: express.Response)
6464
const resp: any = await new Promise((res, rej) => {
6565
timeout = setTimeout(() => {
6666
rej(new Error("Timeout waiting for response from ws"));
67-
}, 5000);
67+
}, 15000);
6868

6969
// Hoist the res and rej functions to be used in the finally block for cleanup
7070
wsRes = res;

0 commit comments

Comments
 (0)