Add disconnect/reconnect commands

This commit is contained in:
Simon Ser 2021-01-12 10:35:38 +01:00
parent 4b165054a4
commit f35f316577
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
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();
},
};