From b45deffeda2f616453b8284dcfb78d65a48b858e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 14 May 2020 20:45:18 -0700 Subject: support opt-in to the different networks --- lib/sockets.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/sockets.js b/lib/sockets.js index 16f42214..d35627b3 100644 --- a/lib/sockets.js +++ b/lib/sockets.js @@ -45,6 +45,7 @@ wss.on("connection", function (ws) { sockets[username][id] = ws; names[id] = username; + ws.send(JSON.stringify({ type: "networks", data: networks })); ws.send(JSON.stringify({ type: "rates", data: app.get("rates") })); ws.send(JSON.stringify({ type: "login", data: await getUser(username) })); l.info("socket open", username); -- cgit v1.2.3