diff --git a/api/index.js b/api/index.js index cf7d9ffd..decc839a 100644 --- a/api/index.js +++ b/api/index.js @@ -11,6 +11,8 @@ app.use(express.json()); var ws = new WebSocket("ws://10.100.0.40:9001/"); var api_connected = false; +console.log("connecting to API..."); +while (ws.readyState != 1) { } ws.on("open", function open() { console.log("connected with websockets to API!");