This commit is contained in:
Violet 2023-09-22 03:05:38 +00:00 committed by GitHub
parent 1e505a4f12
commit 285cb2c216

View file

@ -1,32 +1,7 @@
const express = require('express'), const express = require('express'),
// ws = require('ws'),
path = require('path'), path = require('path'),
fs = require('fs') 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() var app = express()
const PORT = process.env.PORT || 8080 const PORT = process.env.PORT || 8080