Partially change the server core into a class, remove all require("./server") #1520

This commit is contained in:
Louis Lam 2022-04-19 15:38:59 +08:00
parent 1ba92d803e
commit 919393cac9
8 changed files with 110 additions and 70 deletions

View file

@ -1,7 +1,8 @@
const { checkLogin } = require("../util-server");
const { Proxy } = require("../proxy");
const { sendProxyList } = require("../client");
const server = require("../server");
const { UptimeKumaServer } = require("../uptime-kuma-server");
const server = UptimeKumaServer.getInstance();
module.exports.proxySocketHandler = (socket) => {
socket.on("addProxy", async (proxy, proxyID, callback) => {