Skip to content

KevinNovak/MQTT-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MQTT.js / Mosca Example

MQTT.js in Browser with Mosca Broker

Didn't see many examples around so decided to put this out there.

Includes 2 examples:

  1. Embedded
    • Mosca broker runs alongside an express application, as a single executable node app
      • Run using node app.js
  2. Standalone
    • Mosca broker and express application run in separate node applications
      • Run using node app.js for the express application inside the UI directory
      • Run using node server.js for the mosca broker inside the Broker directory

References