Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

mqttjs/mqtt-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (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.

Contributing

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.

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

About

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

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp