heroku deployment

This commit is contained in:
bee 2022-03-01 19:40:22 -08:00
parent b0f4d62ee8
commit 19f49e4a9d
No known key found for this signature in database
GPG key ID: 70EECBF29DA75D8B
2 changed files with 2 additions and 1 deletions

1
Procfile Normal file
View file

@ -0,0 +1 @@
worker: node index.js

View file

@ -19,7 +19,7 @@ main = async () => {
}
openWebSocket = async () => {
const WebSocketClient = require('./WebSocketClient')
const WebSocketClient = require('./WebsocketClient')
const wss = new WebSocketClient(config.socket);
let initialPacket = { "op": "authenticate", "token": config.token }
wss.onOpen = (_) => { wss.send(JSON.stringify(initialPacket)); }