From 1d3e39d002ab4be33de7986ae4ef52c047e62709 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 26 Apr 2019 04:15:46 +1000 Subject: [PATCH] added starterpack to the wss --- plugins/wss.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/wss.js b/plugins/wss.js index e9423b5..1440f4a 100644 --- a/plugins/wss.js +++ b/plugins/wss.js @@ -19,8 +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(`something ${message}`); + ws.send(JSON.stringify({ type: 'starterpack', user: dclient.user })) });