resubscribe method

Future<void> resubscribe()

Re-subscribe to this collection after a reconnect, updating existing model objects in-place so that external references remain valid.

Implementation

Future<void> resubscribe() async {
  final id = await client.send("subscribe", rid, null);
  final json = await client.receive(id);
  _refreshModelsFromJson(json["result"] as Map<String, dynamic>);
}