Merge manually

This commit is contained in:
Louis Lam
2023-12-11 02:36:08 +08:00
parent 869ee8ec50
commit 719ef856e8
7 changed files with 51 additions and 57 deletions

View File

@@ -87,6 +87,12 @@ function question(question) {
});
}
/**
* Disconnect all socket clients of the user
* @param {string} username Username
* @param {string} password Password
* @returns {Promise<void>} Promise
*/
function disconnectAllSocketClients(username, password) {
return new Promise((resolve) => {
console.log("Connecting to " + localWebSocketURL + " to disconnect all other socket clients");