Add JSDoc to server/socket-handlers/*

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Matthew Nickson 2022-04-21 17:10:23 +01:00
parent 3d04befc1f
commit 068b920553
No known key found for this signature in database
GPG key ID: BF229DCFD4748E05
4 changed files with 31 additions and 0 deletions

View file

@ -4,6 +4,10 @@ const { sendProxyList } = require("../client");
const { UptimeKumaServer } = require("../uptime-kuma-server");
const server = UptimeKumaServer.getInstance();
/**
* Handlers for proxy
* @param {Socket} socket Socket.io instance
*/
module.exports.proxySocketHandler = (socket) => {
socket.on("addProxy", async (proxy, proxyID, callback) => {
try {