icanos / ng2-mqtt

Angular2 port of the mqttws31 library
17 stars 24 forks source link

connection problems #9

Closed liquidpizza closed 7 years ago

liquidpizza commented 7 years ago

I wrote a little demo app with this lib but I am not able to connect to the server.

The browser claims it is not able to connect to ws://192.168.100.103:1883/.

None of the success messages is shown in the console either.

liquidpizza commented 7 years ago

this problem was not the lib, but my broker. i know use this

thachhuynh95 commented 7 years ago

I have the same problem, can u explain more clearly ?

liquidpizza commented 7 years ago

If I remember it correctly the broker I used (probably mosquitto) did not support websockets. So my angular app could not connect.

Using mosca fixed this issue.