socket.io-mqtt

0.1.0 • Public • Published

socket.io-mqtt

Build Status NPM version

README TO BE UPDATED

The Socket.io MQTT adapter has been built by forking the redis adapter.

Development just started.

How to use

const io = require('socket.io')(3000);
const mqttAdapter = require('socket.io-mqtt');
io.adapter(mqttAdapter('mqtt://localhost:1883', {}));

mqttAdapter is a function of mqtt package, view detail in bellow https://www.npmjs.com/package/mqtt

All sdk function, detail in: https://socket.io/docs/rooms-and-namespaces/

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i socket.io-mqtt

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

21.7 kB

Total Files

4

Last publish

Collaborators

  • diepnghitinh