use broker with authentication
leorsida opened this issue · comments
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?
@leorsida did you do it works?
It's very simple, use the host with user:password@host