Dedup without keeping deleted array

This commit is contained in:
Philipp Heckel 2022-02-24 14:53:45 -05:00
parent 48523a2269
commit fef46823eb
5 changed files with 10 additions and 12 deletions

View file

@ -40,7 +40,7 @@ class Connection {
console.log(`[Connection, ${this.shortUrl}] Message irrelevant or invalid. Ignoring.`);
return;
}
this.since = data.time;
this.since = data.time + 1; // Sigh. This works because on reconnect, we wait 5+ seconds anyway.
this.onNotification(this.subscriptionId, data);
} catch (e) {
console.log(`[Connection, ${this.shortUrl}] Error handling message: ${e}`);