title: Why does my wss:// (WebSockets over SSL/TLS) connection immediately disconnect without giving any errors?
body: <p>Posting this for anybody else running across the same problem.</p>
  
  <p>I was working on a browser client that used stanza.io to connect to an XMPP server (Prosody, in my case). I was using a wss:// connection by default. At some point during development, my client failed to connect at all - it would immediately disconnect silently, without providing any kind of useful error information.</p>
  
  <p>There were no error logs, no error codes, no confirmation dialogs or bars, no indications of what might be wrong.</p>