From 275507e75d92820ec716f568a33f3779f374f62a Mon Sep 17 00:00:00 2001 From: heckeralt Date: Sun, 25 Aug 2024 18:18:47 -0400 Subject: [PATCH] deleting for fix --- ws-server.js | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 ws-server.js diff --git a/ws-server.js b/ws-server.js deleted file mode 100644 index d7de69a..0000000 --- a/ws-server.js +++ /dev/null @@ -1,26 +0,0 @@ -// Importing the required modules -const WebSocketServer = require('ws'); -// Creating a new websocket server -const wss = new WebSocketServer.Server({ port: 8080 }) -// Creating connection using websocket -wss.on("connection", ws => { -    console.log("new client connected"); -    // sending message to client -    ws.send('Welcome, you are connected!'); -    //on message from client -    ws.on("message", data => { -        console.log(`Client has sent us: ${data}`) -    }); - ws.on("ip", data = { -console.log(`data of connected user: ${data}`) - }); -    // handling what to do when clients disconnects from server -    ws.on("close", () => { -        console.log("the client has connected"); -    }); -    // handling client connection error -    ws.onerror = function () { -        console.log("Some Error occurred") -    } -}); -console.log("The 93Protocol server is running on port 8080"); \ No newline at end of file