From 137120b4b715406a68f92c8d1f355d5a0bc1a10c Mon Sep 17 00:00:00 2001 From: TheEssem Date: Sat, 26 Jun 2021 20:58:22 -0500 Subject: [PATCH] Make connect into an async function --- utils/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/image.js b/utils/image.js index 63d71d9..0b3a78e 100644 --- a/utils/image.js +++ b/utils/image.js @@ -67,7 +67,7 @@ exports.getRunning = async () => { } }; -exports.connect = (server) => { +exports.connect = async (server) => { const connection = new WebSocket(`ws://${server}:8080/sock`); connection.on("message", async (msg) => { const opcode = msg.readUint8(0);