From ad0154c5b0df22752f899428e63f2926f69f12c4 Mon Sep 17 00:00:00 2001 From: shironeko Date: Sun, 2 Feb 2025 20:29:29 -0300 Subject: [PATCH] modified: main.js --- main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.js b/main.js index 0abd60a..964b8ae 100644 --- a/main.js +++ b/main.js @@ -27,8 +27,6 @@ Server can respond with single button updates: {"Method": "UPDATE_BUTTON","Butto - Server can "UPDATE_BUTTON" in any moment */ -var clients = {} - function generateQR(ServerName, ServerIP, token, ServerPort = 8191) { const qrcode = require('qrcode-terminal'); // it generates the exact same link as the official one, but it does not work (?) @@ -46,6 +44,7 @@ function generateQR(ServerName, ServerIP, token, ServerPort = 8191) { }); } +var clients = {} function broadcastServer(ServerName, ServerIP, BroadcastPort = 8191, BroadcastAddress = '255.255.255.255') { const dgram = require('dgram'); const udpClient = dgram.createSocket('udp4'); @@ -72,7 +71,6 @@ function broadcastServer(ServerName, ServerIP, BroadcastPort = 8191, BroadcastAd }, 5000); } - function startWsServer(ServerPort = 8191) { const { WebSocketServer } = require("ws"); const wss = new WebSocketServer({ port: ServerPort })