harcon-mqtt

4.2.43 • Public • Published

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

Package Sidebar

Install

npm i harcon-mqtt

Weekly Downloads

1

Version

4.2.43

License

MIT

Unpacked Size

29.2 kB

Total Files

8

Last publish

Collaborators

  • imre.fazekas