Socket
Socket
Sign inDemoInstall

mqtt-server

Package Overview
Dependencies
29
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mqtt-server

Simple API to build your own MQTT server on top of it.


Version published
Weekly downloads
1.6K
decreased by-1.46%
Maintainers
1
Install size
5.72 MB
Created
Weekly downloads
 

Readme

Source

mqtt-server   Build Status npm version

Simple API to build your own MQTT server on top of it.

Install

npm install mqtt-server --save

Examples

Launch a bunch of mqtt servers (uses create-stream-server under the hood):

var fs = require('fs');
var mqttServer = require('mqtt-server');

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 out create-stream-server.

Contributing

mqtt-server is an OPEN 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 the CONTRIBUTING.md file for more details.

Contributors

mqtt-server is only possible due to the excellent work of the following contributors:

Joël GähwilerGitHub/256dpiTwitter/@256dpi
Matteo CollinaGitHub/mcollinaTwitter/@matteocollina
Adam RuddGitHub/adamvrTwitter/@adam_vr

License

MIT

Keywords

FAQs

Last updated on 27 Jan 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc