json perhaps lmao

This commit is contained in:
2019-04-26 03:57:08 +10:00
parent 9019f9d82b
commit 2b1baa6f5d

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({ name: "dclient.user.username" })
ws.send(JSON.stringify({ name: "dclient.user.username" }))
ws.send(`something ${message}`);
});