node express js set server timeout

107

node express js set server timeout -

const PORT = 3000;
const server = app.listen(PORT);

const timeout = 50*1000; // example timeout of 50 seconds
server.setTimeout(timeout);

Comments

Submit
0 Comments