How to suppress websocket connect error in console

1,052 views
Skip to first unread message

Stephen James

unread,
Jul 31, 2015, 2:11:31 PM7/31/15
to Chromium-discuss
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?

PhistucK

unread,
Aug 1, 2015, 8:16:23 AM8/1/15
to sajam...@gmail.com, Chromium-discuss
Probably not.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Reply all
Reply to author
Forward
0 new messages