mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
api: websocket init timeout
This commit is contained in:
parent
4933577dae
commit
5ace2bf0e4
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ router.ws('/connect', async (ws, req) => {
|
||||||
|
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
//Terminate the socket after 1 second, if not initialized.
|
//Terminate the socket after 1 second, if not initialized.
|
||||||
//if(job === null)
|
if(job === null)
|
||||||
// ws.close(4001, "Initialization Timeout");
|
ws.close(4001, "Initialization Timeout");
|
||||||
}, 1000)
|
}, 1000)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue