{"action":"created","issue":{"url":"https://api.github.com/repos/mqttjs/MQTT.js/issues/408","repository_url":"https://api.github.com/repos/mqttjs/MQTT.js","labels_url":"https://api.github.com/repos/mqttjs/MQTT.js/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/mqttjs/MQTT.js/issues/408/comments","events_url":"https://api.github.com/repos/mqttjs/MQTT.js/issues/408/events","html_url":"https://github.com/mqttjs/MQTT.js/issues/408","id":155708930,"number":408,"title":"mqtt over websockets using google chrome","user":{"login":"vasco-santos","id":7295071,"avatar_url":"https://avatars.githubusercontent.com/u/7295071?v=3","gravatar_id":"","url":"https://api.github.com/users/vasco-santos","html_url":"https://github.com/vasco-santos","followers_url":"https://api.github.com/users/vasco-santos/followers","following_url":"https://api.github.com/users/vasco-santos/following{/other_user}","gists_url":"https://api.github.com/users/vasco-santos/gists{/gist_id}","starred_url":"https://api.github.com/users/vasco-santos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasco-santos/subscriptions","organizations_url":"https://api.github.com/users/vasco-santos/orgs","repos_url":"https://api.github.com/users/vasco-santos/repos","events_url":"https://api.github.com/users/vasco-santos/events{/privacy}","received_events_url":"https://api.github.com/users/vasco-santos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-19T10:55:59Z","updated_at":"2016-05-19T14:33:34Z","closed_at":null,"body":"Hello,\r\n\r\nI am using this MQTT client in a web application to communicate with a python broker.\r\n\r\nIn the connect message, the browser (Chrome) outputs in the console the following error:\r\n\r\n`WebSocket connection to 'ws://127.0.0.1:8888/' failed: Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no response was received`\r\n\r\nIn my broker, the following error is presented:\r\n\r\n`[2016-05-19 11:46:57,027] :: INFO :: hbmqtt.broker :: Connection from 127.0.0.1:53516 on listener 'ws-mqtt'\r\n[2016-05-19 11:46:57,027] :: INFO :: websockets.protocol :: Failing the WebSocket connection: 1006  \r\nWARNING :: hbmqtt.broker :: MQTT-3.1.0-1: Can't read first packet an CONNECT: No more data`\r\n\r\nHowever, using Firefox, as well as Safari, the MQTT client works fine.\r\n\r\nBroker Output for Firefox:\r\n\r\n`[2016-05-19 11:47:32,843] :: INFO :: hbmqtt.broker :: Connection from 127.0.0.1:53524 on listener 'ws-mqtt'`\r\n\r\nI have a test [project](https://github.com/vasco-santos/mqttOverWebSockets) for this issue."},"comment":{"url":"https://api.github.com/repos/mqttjs/MQTT.js/issues/comments/220342841","html_url":"https://github.com/mqttjs/MQTT.js/issues/408#issuecomment-220342841","issue_url":"https://api.github.com/repos/mqttjs/MQTT.js/issues/408","id":220342841,"user":{"login":"vasco-santos","id":7295071,"avatar_url":"https://avatars.githubusercontent.com/u/7295071?v=3","gravatar_id":"","url":"https://api.github.com/users/vasco-santos","html_url":"https://github.com/vasco-santos","followers_url":"https://api.github.com/users/vasco-santos/followers","following_url":"https://api.github.com/users/vasco-santos/following{/other_user}","gists_url":"https://api.github.com/users/vasco-santos/gists{/gist_id}","starred_url":"https://api.github.com/users/vasco-santos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasco-santos/subscriptions","organizations_url":"https://api.github.com/users/vasco-santos/orgs","repos_url":"https://api.github.com/users/vasco-santos/repos","events_url":"https://api.github.com/users/vasco-santos/events{/privacy}","received_events_url":"https://api.github.com/users/vasco-santos/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T14:33:33Z","updated_at":"2016-05-19T14:33:33Z","body":"I uploaded to my repository the python broker. It needs Python3, as well as hbmqtt pip package."}}