broker allways disconnects me when trying to subscribe. i have it like this: private onConnected() { console.log('Connected to broker.'); this._client.subscribe('testtopic/', {qos: 1}); } do i make it right? thank you
broker allways disconnects me when trying to subscribe.
i have it like this:
private onConnected()
{
console.log('Connected to broker.');
this._client.subscribe('testtopic/', {qos: 1});
}
do i make it right?
thank you