I am connecting to a websocket server server.example.io:8443/websocket, but the website takes up do a minute to give a response.
As result, the navigator closes the connection:
let connection = new WebSocket("wss://server.example.io:8443/websocket");
Firefox can’t establish a connection to the server at wss://server.example.io:8443/websocket.
What I am looking for is a configuration that allow me to change the timeout limit and set it up to 2 minutes, so the browser won't close the connection, something like that:
let connection = new WebSocket("wss://server.example.io:8443/websocket", {timeout:120000});
Important: I don't own the server, so I can't reduce the response time. After the connection was made, the data transfer is fast.