- Notifications
You must be signed in to change notification settings - Fork31
Simple API to build your own MQTT server on top of it.
License
mqttjs/mqtt-server
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Simple API to build your own MQTT server on top of it.
npm install mqtt-server --save
Launch a bunch of mqtt servers (usescreate-stream-server under the hood):
varfs=require('fs');varmqttServer=require('mqtt-server');varservers=mqttServer({mqtt:'tcp://localhost:1883',mqtts:'ssl://localhost:8883',mqttws:'ws://localhost:1884',mqtwss:'wss://localhost:8884'},{ssl:{key:fs.readFileSync('./server.key'),cert:fs.readFileSync('./server.crt')},emitEvents:true// default},function(client){client.connack({returnCode:0});});servers.listen(function(){console.log('listening!');});
For more detailed information about the server configuration check outcreate-stream-server.
mqtt-server is anOPEN Open Source Project. This means that:
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
See theCONTRIBUTING.md file for more details.
mqtt-server is only possible due to the excellent work of the following contributors:
| Joël Gähwiler | GitHub/256dpi | Twitter/@256dpi |
|---|---|---|
| Matteo Collina | GitHub/mcollina | Twitter/@matteocollina |
| Adam Rudd | GitHub/adamvr | Twitter/@adam_vr |
MIT
About
Simple API to build your own MQTT server on top of it.
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
