Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Added passing args to disconnect method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Mar 24, 2020
1 parent 2db3f35 commit e38749a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netology-group/mqtt-client",
"version": "0.4.1",
"version": "0.4.2",
"description": "MQTT client implementation for JavaScript",
"files": [
"dist",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class MQTTClient {
this._client.on(MQTTClient.events.MESSAGE, this._handleMessageEvent)
}

disconnect () {
this._client.end()
disconnect (...args) {
this._client.end(...args)
}

reconnect () {
Expand Down

0 comments on commit e38749a

Please sign in to comment.