8000 GitHub - imrefazekas/harcon-mqtt: MQTT plugin for harcon
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

imrefazekas/harcon-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

harcon-mqtt

AMQP transport layer ("Barrel") plugin for harcon.

Both PUB/SUB and PUSH/PULL socket types are supported. See socket types explained here.

Installation

npm install harcon harcon-mqtt --save

Usage

var Harcon = require('harcon');
var Mqtt = require('harcon-mqtt');

var mqttConfig = {
	connectURL: 'mqtt://localhost',
	timeout: 0
};
var harcon = new Harcon( { Barrel: Mqtt.Barrel, barrel: mqttConfig }, function(err){
} );

Should the recipients be not available or fail to meet the timeframe defined by the attribute 'timeout', harcon will call the callbacks of the given messages with an error.

js-standard-style

About

MQTT plugin for harcon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0