Added socket reconnection.

This commit is contained in:
2021-11-04 01:51:43 +01:00
parent aed92bfefa
commit c3585ad08b
3 changed files with 155 additions and 123 deletions

View File

@@ -1,21 +1,23 @@
'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',
prefix: '~',
style: {
color: 'var(--message-56)',
},
games: ['mash'],
channels: ['GamesNight'],
user: {
id: 'clive',
key: 'abcdefgh12345678',
username: 'Clive',
// optional
gender: 'male',
birthdate: new Date(1952, 11, 10),
avatar: 'https://i.imgur.com/IZwrjjG.png',
},
uniqueUsername: true,
socket: 'ws://127.0.0.1:3000/socket',
api: 'http://127.0.0.1:3000/api',
prefix: '~',
style: {
color: 'var(--message-56)',
},
games: ['mash', 'cursed'],
channels: ['GamesNight'],
reconnectDelay: 10, // seconds
};