Commit 00553dd9 by Chavee Issariyapat

add unsubscribe

parent aa9f8e03
...@@ -49,6 +49,14 @@ MQTTClient.prototype.subscribe = function(topic) { ...@@ -49,6 +49,14 @@ MQTTClient.prototype.subscribe = function(topic) {
} }
} }
MQTTClient.prototype.unsubscribe = function(topic) {
if (this.client) {
this.client.unsubscribe(topic);
}
else {
}
}
function create(param) { function create(param) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment