and not a string :D

This commit is contained in:
2019-04-26 03:58:02 +10:00
parent 2b1baa6f5d
commit 730e0cbfd4

View File

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