made sure that the socket handlers have consitent names (#4818)

This commit is contained in:
Frank Elsinga 2024-08-24 18:40:50 +02:00 committed by GitHub
parent 0ddf35e7b5
commit 9486fa22ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View file

@ -29,8 +29,13 @@ function getGameList() {
return gameList;
}
/**
* Handler for general events
* @param {Socket} socket Socket.io instance
* @param {UptimeKumaServer} server Uptime Kuma server
* @returns {void}
*/
module.exports.generalSocketHandler = (socket, server) => {
socket.on("initServerTimezone", async (timezone) => {
try {
checkLogin(socket);