title: Silence net::ERR_CONNECTION_REFUSED
body: <p>Connecting to a non-existent web socket server results in loud errors being logged to the console, usually to the tune of <code>... net::ERR_CONNECTION_REFUSED</code>.</p>
  
  <p>Anyone have an idea for a hackaround to silence this output? <code>XMLHttpRequest</code> won't work since it yields the same verbose error output if the server is not reachable.</p>
  
  <p>The goal here is to test if the server is available, if it is then connect to it, otherwise use a fallback, and to do this without spamming the console with error output.</p>