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地址  
相关文章
相关标签/搜索