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}`); });