mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
src/client/websocket/packets/WebSocketPacketManager.js
src/structures/datastore/WebSocketManagerDataStore.js Added "rough" reconnection attempting The following however still needs to be done: 1) stop trying after a certain amount of time 2) increasing timeout between each timeout 3) re-evaluate the current method of how reconnecting is handled internally
This commit is contained in:
@@ -4,9 +4,10 @@ const Discord = require('../');
|
||||
|
||||
let client = new Discord.Client();
|
||||
|
||||
client.login(require('./auth.json').token).then(token => console.log('ready!')).catch(console.log);
|
||||
client.login(require('./auth.json').token).then(token => console.log('logged in with token ' + token)).catch(console.log);
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log('ready!');
|
||||
});
|
||||
|
||||
client.on('guildCreate', (guild) => {
|
||||
|
||||
Reference in New Issue
Block a user