angular7使用mqtt,build后出现‘ws//localhost:8083’的问题
angular7使用mqtt,build后出现‘ws//localhost:8083’,而不是使用指定的IP地址去连接mqtt问题:mqtt自己把自己设为了localhost解决:1. 找到 node_modules/ngx-mqtt/src/mqtt.service.js2. 搜索hostname,找到‘localhost’,将其改为自己的IP地址...
·
angular7使用mqtt,build后出现‘ws//localhost:8083’,而不是使用指定的IP地址去连接mqtt
问题:mqtt自己把自己设为了localhost
解决:
1. 找到 node_modules/ngx-mqtt/src/mqtt.service.js
2. 搜索hostname,找到‘localhost’,将其改为自己的IP地址
更多推荐
所有评论(0)