MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
MIT License
4.35k
stars
1.05k
forks
source link
WebSocket connection to 'ws://127.0.0.1:10086/' failed: #2021
See error:'mqtt.min.js:5 WebSocket connection to 'ws://127.0.0.1:10086/' failed: ',' Connection error:Error: WebSocket error'
Client
` var host = ‘127.0.0.1;
var port = 10086;
var path = ’‘;
var clientID = ’123‘; //clientID
var user = ’admin;
var password = '123456';
var url = host+':'+port+path;
How to configure the mqtt server?
Steps to reproduce the behavior:
Client ` var host = ‘127.0.0.1; var port = 10086; var path = ’‘; var clientID = ’123‘; //clientID var user = ’admin; var password = '123456'; var url = host+':'+port+path;
var options = { clientID:clientID, username:user, password:password }; client = mqtt.connect(url,options); `