title: Websocket connection error with HiveMQ 2.1.0 + Eclipse Paho javascript mqttws31.js
body: <p>I am facing the below error when executing the mqttws31.js as part of a HTML file on Google Chrome.</p>
  
  <p>HiveMQ was used as MQTT broker,  logs are as below</p>
  
  <pre><code>2014-10-28 14:46:45,043 INFO  - HiveMQ home directory: E:\hivemq-2.1.0
  2014-10-28 14:46:45,065 INFO  - Starting HiveMQ Server
  2014-10-28 14:46:48,249 WARN  - No license file found. Using free personal licensing with  restrictions to 25 connections.
  2014-10-28 14:46:48,367 INFO  - Activating statistics callbacks with an interval of 60 seconds
  2014-10-28 14:46:48,368 INFO  - Activating $SYS topics with an interval of 60 seconds
  2014-10-28 14:46:48,728 INFO  - Starting on address 127.0.0.1 and port 1883
  2014-10-28 14:46:48,734 INFO  - Started HiveMQ 2.1.0 in 3694ms
  </code></pre>
  
  <p>When the HTML file containing the MQTT client, the below error is encountered.</p>
  
  <pre><code>WebSocket connection to 'ws://127.0.0.1:1883/mqtt' failed: Connection closed before receiving a handshake response
  </code></pre>
  
  <p>Any help in resolving this appreciated.</p>