From 730e0cbfd407e8401b04dd0512614e5c43ae3410 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 26 Apr 2019 03:58:02 +1000 Subject: [PATCH] and not a string :D --- plugins/wss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wss.js b/plugins/wss.js index eb9961a..e9423b5 100644 --- a/plugins/wss.js +++ b/plugins/wss.js @@ -19,7 +19,7 @@ module.exports = { wss.on('connection', function connection(ws) { ws.on('message', function incoming(message) { if (message == "name") - ws.send(JSON.stringify({ name: "dclient.user.username" })) + ws.send(JSON.stringify({ name: dclient.user.username })) ws.send(`something ${message}`); });