title: Can not connect to websocket server using WebSocket4Net
body: <p>I have a mochiweb as WebSocket server; connectivity using JavaScript from <strong>Chrome</strong> browser as ws client went smooth (open, send message, close). However, when I tried to connect from C# using <strong>websocket4Net</strong>, I always get below error from <strong>mochiweb</strong>.</p>
  
  <blockquote>
    <p>=CRASH REPORT==== 30-Jan-2013::16:57:41 ===
      crasher:
        initial call: mochiweb_acceptor:init/3
        pid: &lt;0.228.0>
        registered_name: []
        exception error: no case clause matching {error,timeout}
          in function  mochiweb_http:websocket_init_with_origin_validated/4 (mochiweb_http.erl, line 292)
          in call from mochiweb_http:headers_ws_upgrade/4 (mochiweb_http.erl, line 192)
        ancestors: [cim_https,&lt;0.166.0>]
        messages: []
        links: [&lt;0.167.0>]
        dictionary: []
        trap_exit: false
        status: running
        heap_size: 1597
        stack_size: 24
        reductions: 1585</p>
  </blockquote>
  
  <p>my C# snippet:</p>
  
  <blockquote>
  <pre><code>        webSocketClient = new WebSocket("wss://localhost:8080/login");
                      webSocketClient.Error += new EventHandler&lt;SuperSocket.ClientEngine.ErrorEventArgs&gt;(webSocketClient_Error) ;
          webSocketClient.AllowUnstrustedCertificate = true;
          webSocketClient.Opened += new EventHandler(webSocketClient_Opened);
          webSocketClient.Closed += new EventHandler(webSocketClient_Closed);
          webSocketClient.MessageReceived += new EventHandler&lt;MessageReceivedEventArgs&gt;(webSocketClient_MessageReceived);
          webSocketClient.Open();
  </code></pre>
  </blockquote>
  
  <p>Is there any parameter that I've missed ? Any idea on how to trace this ? </p>