I have a websocket application that when disconnected from the server retries the connection awaiting the server recovery.
During this time "WebSocket connection to 'ws://
192.168.1.83:3102/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED"
Is displayed in the console for each attempt. The application expects the server to be down at times and I don't want this error in the console.
I attempted to put try/catch around the WebSocket constructor (without expectation of success) and it still comes out.
I have handlers for onclose and onerror, the onerror handler is called, but still that error.
Is there a way to suppress this error?