aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sockets.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-06-15 13:37:38 -0700
committerAdam Soltys <[email protected]>2020-06-15 13:37:38 -0700
commited0da89c7d98195294ced6d71812183a04e24c76 (patch)
tree411817cfbb8c7fa50b8c15ae546be038364b68ff /lib/sockets.js
parent74b7d2a0d614f170ba5aea3a1a172a7a68356d80 (diff)
downloadcoinos-server-ed0da89c7d98195294ced6d71812183a04e24c76.tar.gz
coinos-server-ed0da89c7d98195294ced6d71812183a04e24c76.zip
move client version, update example config and schema
Diffstat (limited to 'lib/sockets.js')
-rw-r--r--lib/sockets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index 07af88d8..4b733882 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -77,7 +77,7 @@ wss.on("connection", function(ws, req) {
ws.user = user;
ws.send(JSON.stringify({ type: "login", data: user }));
- ws.send(JSON.stringify({ type: "version", data: clientVersion }));
+ ws.send(JSON.stringify({ type: "version", data: config.clientVersion }));
l.info("socket open", username, id);
} catch (e) {
ws.close();