angular7使用mqtt,build後出現‘ws//localhost:8083’的問題

angular7使用mqtt,build後出現‘ws//localhost:8083’,而不是使用指定的IP地址去連接mqtt 問題:mqtt自己把自己設爲了localhost 解決: 1. 找到 node_modules/ngx-mqtt/src/mqtt.service.js 2. 搜索hostname,找到‘localhost’,將其改爲自己的IP地址  
相關文章
相關標籤/搜索