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:
hydrabolt
2016-04-19 20:24:23 +01:00
parent da42b422f0
commit acc9c9bf12
5 changed files with 85 additions and 7 deletions

View File

@@ -28,6 +28,8 @@ class ReadyHandler extends AbstractHandler {
client.store.NewChannel(privateDM);
}
this.packetManager.ws.store.sessionID = data.session_id;
this.packetManager.ws.checkIfReady();
}