From 2b1baa6f5d36da71d61a8d9dba04b1292edcc02c Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 26 Apr 2019 03:57:08 +1000 Subject: [PATCH] json perhaps lmao --- plugins/wss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wss.js b/plugins/wss.js index 90809b5..eb9961a 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({ name: "dclient.user.username" }) + ws.send(JSON.stringify({ name: "dclient.user.username" })) ws.send(`something ${message}`); });