mirror of
https://github.com/litruv/DAdmin.git
synced 2026-11-29 18:05:59 +11:00
json perhaps lmao
This commit is contained in:
1 parent
9019f9d82b
commit
2b1baa6f5d
1 file changed
+1
-1
+1
-1
@@ -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}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user