nik-zp / Vue-Mqtt

Connect to mqtt through websocket, implementation for Vuejs 2
95 stars 33 forks source link

close connection #4

Closed zahrahajilary closed 6 years ago

zahrahajilary commented 6 years ago

hi dear friend i want to close my connection after finish jobs , what should i do for problem

lighthousebulb commented 6 years ago

You can call this.$mqtt.end(true) for example. As described in the MQTT.js documentation.

zahrahajilary commented 6 years ago

tnx for your answer , solved my proble