Open SimonWoolf opened 4 years ago
I think it's got to be option 2. Log/discard just feels reckless, perhaps more dangerous than the current state of operation... if the channel's sending deltas then we need to commit to receiving them - once that stream is broken the server doesn't know so the channel's going to be trash, right?
If you ask for the delta
param, but don't have the plugin, what happens?
Assuming that check exists and ought to prevent you getting further, then if you get so far as receiving a delta message and attempting to decode it, and you don't have a plugin, then (2) is fine.
➤ Automation for Jira commented:
The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-2787
An unexpected implication of https://docs.ably.io/client-lib-development-guide/features/#RTL18 is that if you fail to pass in a vcdiff plugin at all, everything still seems to work apart from seeing a bunch of error logs, because you end up with the reattach procedure being done on every message.
We should not do the recovery procedure if we get a delta when we don't have a vcdiff plugin. We could instead either
failed
@QuintinWillison @paddybyers wdyt?
related: https://ably.atlassian.net/browse/SDK-38
┆Issue is synchronized with this Jira Task by Unito