Skip to content Skip to sidebar Skip to footer

Use MQTTNet Server With MQTT.js Client

I have started an MQTT server just like this example. This code is hosted in an ASP.Net Core 2.0 application but I have tried console application with no luck. I have also setup a

Solution 1:

MQTT.js does support both native MQTT and MQTT over Websockets, but if you are embedding it in to a web app it can only use MQTT over Websockets because the browsers sandbox will not allow it to use arbitrary TCP connections.

As for enabling Websockets in the broker I can't see anything obvious in the code so you'll probably have to raise and issue against the github project to ask for details.


Solution 2:


Post a Comment for "Use MQTTNet Server With MQTT.js Client"