mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +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:
14
src/structures/datastore/WebSocketManagerDataStore.js
Normal file
14
src/structures/datastore/WebSocketManagerDataStore.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
const AbstractDataStore = require('./AbstractDataStore');
|
||||
|
||||
class WebSocketManagerDataStore extends AbstractDataStore{
|
||||
constructor() {
|
||||
super();
|
||||
this.sessionID = null;
|
||||
this.sequence = -1;
|
||||
this.gateway = null;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = WebSocketManagerDataStore;
|
||||
Reference in New Issue
Block a user