[node.js] npm, mqtt, mosca

"npm install module --save" not work

npm install *module* --save 沒有生成 package.json 文件? 須要在項目目錄初始化 npm init 後使用 若是已經安裝了一些 module,可使用 npm install --savegit

mosca & mqtt.js

mqtt.js 使用 websocket 協議github

  • server

https://github.com/mcollina/mosca/wiki/MQTT-over-Websocketsweb

  • client

https://github.com/mqttjs/MQTT.js#browserifyhttps://github.com/mqttjs/MQTT.js#browserifynpm

相關文章
相關標籤/搜索