IotHub Browser Only Package
Features:
- Receives Cloud-to-device messages
- Sends Device-to-cloud messages
- Monitors all IotHub Messages
Install
Run npm install --save-dev iothub-browser
How to Use IotHub Device(in the browser)
Assuming you are using a bundler like browserify or webpack
const publish close = // ... to close the connection
How to Use Event Monitoring
Event Monitoring uses the events
Iothub endpoint which is a eventhub-compatible endpoint.
const close = // ... to close the monitor connection