Remove WebSocket datastore - move directly to WebSocketManager

This commit is contained in:
Amish Shah
2016-08-19 21:37:23 +01:00
parent bd50e3c0a5
commit ad8b4c7698
5 changed files with 18 additions and 24 deletions

View File

@@ -55,8 +55,8 @@ class WebSocketPacketManager {
}
setSequence(s) {
if (s && s > this.ws.store.sequence) {
this.ws.store.sequence = s;
if (s && s > this.ws.sequence) {
this.ws.sequence = s;
}
}

View File

@@ -19,7 +19,7 @@ class ReadyHandler extends AbstractHandler {
client.store.newChannel(privateDM);
}
this.packetManager.ws.store.sessionID = data.session_id;
this.packetManager.ws.sessionID = data.session_id;
this.packetManager.ws.checkIfReady();
}