added starterpack to the wss

This commit is contained in:
2019-04-26 04:15:46 +10:00
parent 730e0cbfd4
commit 1d3e39d002

View File

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