mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-21 06:02:04 -04:00
made sure that the socket handlers have consitent names (#4818)
This commit is contained in:
parent
0ddf35e7b5
commit
9486fa22ee
3 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue