Auth, connect and room join with greeting.

This commit is contained in:
2021-10-31 22:33:18 +01:00
commit 755411b9c1
6 changed files with 1028 additions and 0 deletions

17
config/default.js Normal file
View File

@@ -0,0 +1,17 @@
'use strict';
module.exports = {
user: {
id: 'clive',
key: 'abcdefgh12345678',
username: 'Clive',
// optional
gender: 'male',
birthdate: new Date(1952, 11, 10),
avatar: 'https://i.imgur.com/IZwrjjG.png',
},
socket: 'ws://127.0.0.1:3000/socket',
api: 'http://127.0.0.1:3000/api',
encrypt: false,
channels: ['GamesNight'],
};