Added socket reconnection.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user