title: can't connect to ejabberd through Kaiwa chat client using websocket
body: <p>I can't connect to my ejabberd server through Kaiwa chat client. this is my ejabberd server configuration:</p>
  
  <pre><code>hosts:
    - "myserver.com"
  listen: 
    - 
      port: 5280
      module: ejabberd_http
      certfile: "/Applications/ejabberd-15.10/conf/myserver.pem"
      request_handlers:
        "/websocket": ejabberd_http_ws
      web_admin: true
      http_bind: true
      captcha: false
  </code></pre>
  
  <p>and this is my Kaiwa config file:</p>
  
  <pre><code>{
     "isDev": true,
     "http": {
         "host": "localhost",
         "port": 8000
     },
     "server": {
         "domain": "myserver.com",
         "wss": "wss://myserver.com:5280/websocket/"
     }
  }
  </code></pre>
  
  <p>when I try to login I get this error:</p>
  
  <p>WebSocket connection to 'wss://myserver.com:5280/websocket' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED</p>
  
  <p>My ejabberd version is 15.10 which should support websocket.</p>
  
  <p>I would appreciate any help.</p>