diff --git a/.gitignore b/.gitignore index d71c927..b0640bc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ googleapi\.json setup.json merged.mp3 output.mp3 +privkey.pem +cert.pem diff --git a/plugins/wss.js b/plugins/wss.js index a927f43..a396a4a 100644 --- a/plugins/wss.js +++ b/plugins/wss.js @@ -18,14 +18,16 @@ module.exports = { wss.on('connection', function connection(ws) { ws.on('message', function incoming(message) { - console.log('received: %s', message); + if (message == "name") + ws.send({ name: dclient.user.username }) ws.send(`something ${message}`); }); + ws.send('something'); }); - server.listen(8080, "0.0.0.0"); + server.listen(8080); } } \ No newline at end of file