awesome
This commit is contained in:
parent
1e505a4f12
commit
285cb2c216
1 changed files with 0 additions and 25 deletions
25
index.js
25
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
|
||||
|
|
Loading…
Reference in a new issue