applyUpdatesAsync method
@@@ Replays the update log → await to send it. Backend errors surface here.
Implementation
Future<void> applyUpdatesAsync([int maxErrors = 0]) async {
final conn = _wapConn;
applyUpdates(maxErrors); // calls applyRecUpdate entry by entry → execute pushes into the queue
await conn.flushPending();
}