Emqx: EMQ Websocket issues with mqttjs

Created on 12 Apr 2018  路  2Comments  路  Source: emqx/emqx

Environment

  • OS: centos7
  • Erlang/OTP:
  • EMQ: 2.3.6

Description

A description of the issue
When connecting from the browser with the mqtt library, it seems there is some kind of websocket issue, while this may not be caused by EMQ it happens only with EMQ, we have an open issue over in the mqttjs project.
https://github.com/mqttjs/MQTT.js/issues/785

wontfix

Most helpful comment

Hi, your path is not correct, use mqtt.connect('ws://127.0.0.1:8083/mqtt') instead.

The web-socket listen path will be able to configured in the future version, see https://github.com/emqtt/emqttd/pull/1537

All 2 comments

it would seem that this combo produces an extra get request which causes emq to return a 404 error. switching clients solves the issue but it would be nice for this to just work....

Hi, your path is not correct, use mqtt.connect('ws://127.0.0.1:8083/mqtt') instead.

The web-socket listen path will be able to configured in the future version, see https://github.com/emqtt/emqttd/pull/1537

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikybone picture mikybone  路  3Comments

mariusstaicu picture mariusstaicu  路  3Comments

franquis picture franquis  路  5Comments

stefano055415 picture stefano055415  路  4Comments

w3yyb picture w3yyb  路  3Comments