heroku deployment
This commit is contained in:
parent
b0f4d62ee8
commit
19f49e4a9d
2 changed files with 2 additions and 1 deletions
1
Procfile
Normal file
1
Procfile
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
worker: node index.js
|
||||||
2
index.js
2
index.js
|
|
@ -19,7 +19,7 @@ main = async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
openWebSocket = async () => {
|
openWebSocket = async () => {
|
||||||
const WebSocketClient = require('./WebSocketClient')
|
const WebSocketClient = require('./WebsocketClient')
|
||||||
const wss = new WebSocketClient(config.socket);
|
const wss = new WebSocketClient(config.socket);
|
||||||
let initialPacket = { "op": "authenticate", "token": config.token }
|
let initialPacket = { "op": "authenticate", "token": config.token }
|
||||||
wss.onOpen = (_) => { wss.send(JSON.stringify(initialPacket)); }
|
wss.onOpen = (_) => { wss.send(JSON.stringify(initialPacket)); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue