From 285cb2c216b658029b795b175571116c24ee1cca Mon Sep 17 00:00:00 2001 From: Violet Date: Fri, 22 Sep 2023 03:05:38 +0000 Subject: [PATCH] awesome --- index.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/index.js b/index.js index 1e39b39..b779b4d 100644 --- a/index.js +++ b/index.js @@ -1,32 +1,7 @@ const express = require('express'), -// ws = require('ws'), path = require('path'), fs = require('fs') -// const websocket = new ws.WebSocket('wss://api.lanyard.rest/socket', {}) - -// var heartInt = 30000 - -// function heartbeat() { -// websocket.send(JSON.stringify({op: 3})) - -// setTimeout(() => { -// heartbeat() -// }, heartInt); -// } - -// websocket.on('message', function mess(buffer, bing) { -// var data = JSON.parse(buffer) -// var opc = data.op - -// console.log(data) - -// if (opc == 1) { -// heartint = buffer.heartbeat_interval -// heartbeat() -// } -// }) - var app = express() const PORT = process.env.PORT || 8080