Giter Site home page Giter Site logo

strong-pubsub-mqtt's Introduction

strong-pubsub-mqtt

An MQTT Adapter for strong-pubsub

Installation

$ npm install strong-pubsub-mqtt

Use

var Client = require('strong-pubsub');
var Adapter = require('strong-pubsub-mqtt');

var client = new Client({host: 'http://my.message-broker.com', port: 3000}, Adapter);

client.publish('my topic', 'my message');

strong-pubsub-mqtt's People

Contributors

ritch avatar rmg avatar sam-github avatar

Stargazers

Che Jen Yeh avatar Mr.Ding avatar Efrem Ropelato avatar Payam Yousefi avatar Matteo Padovano avatar Darren avatar Viacheslav Shabelnyk avatar Energisa One avatar Dan Minshew avatar

Watchers

 avatar Raymond Feng avatar James Cloos avatar Chandrika Gole avatar Viacheslav Shabelnyk avatar Sumitha Nathan avatar Sean Brookes avatar  avatar StrongLoop Bot avatar Dennis Ashby avatar Chanda Dharap avatar Tetsuo Seto avatar Joe Simonsen avatar  avatar Amrit Bhullar avatar  avatar Anthony Ettinger avatar  avatar Ying Lu avatar Rashmi Hunt avatar  avatar

strong-pubsub-mqtt's Issues

firstConnection.close is not a function

Hey,

Trying to manage connection time out, I've set connectionTimeout to 15000 in my config file.

But, in my case, firstConnection is a net.Socket => the close() function does not exist.

Everything goes fine when I use destroy() instead of close().

Do you want me to fork then create a pull request ? or you'll update that by yourself ?

Regards

use broker with authentication

Hi,

we would like to use loopback mqtt library with authentication like this:

var Client = require('strong-pubsub');
var Adapter = require('strong-pubsub-mqtt');
var client = new Client({host: localhost, port: 1883, username: 'xxxx', password: 'xxxx'}, Adapter);

but it didn't work, how can do this?

Lost connection with message broker

When the connection is lost, there is no notification of this. And then the sending of messages will not work even if the connection with the broker is restored.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.