Add disconnect/reconnect commands

This commit is contained in:
Simon Ser
2021-01-12 10:35:38 +01:00
parent 4b165054a4
commit f35f316577
2 changed files with 44 additions and 15 deletions

View File

@@ -88,4 +88,10 @@ export default {
}
app.client.send({ command: "TOPIC", params });
},
"reconnect": (app, args) => {
app.reconnect();
},
"disconnect": (app, args) => {
app.disconnect();
},
};