Mqtt.js: How can I disconnect the connection?

Created on 19 Aug 2017  路  4Comments  路  Source: mqttjs/MQTT.js

hi
How can I disconnect the connection?
Is this module have disconnect method ? i cant find it :((

Most helpful comment

it's .end().

All 4 comments

it's .end().

You should add this to the documentation @mcollina.

@MartinMuzatko would you mind to send a PR? thanks!

Oh! it looks like it already exists.
https://github.com/mqttjs/MQTT.js#mqttclientendforce-cb
My bad! I didn't find it in the first place.
Everything should be alright.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SSL
reejinbouk picture reejinbouk  路  4Comments

jeffdare picture jeffdare  路  9Comments

wugaoxue picture wugaoxue  路  5Comments

goliatone picture goliatone  路  4Comments

mcollina picture mcollina  路  8Comments