In my case it was about ending entries that did not exist yet.
I think an easy fix would be to cache all updates that could not be applied because of this and then try to parse them again after processing all initial updates and after each update batch after that (when update.serial === update.max_serial)
Which means the devices can get out of sync.
In my case it was about ending entries that did not exist yet.
I think an easy fix would be to cache all updates that could not be applied because of this and then try to parse them again after processing all initial updates and after each update batch after that (when update.serial === update.max_serial)