resume method

Future<void> resume()

Implementation

Future<void> resume() async {
  this._watchStatus = WATCH_STATUS.RESUMING;

  Console.log(
      '[realtime] client resuming with ${this._sessionInfo != null ? 'REBUILD_WATCH' : 'INIT_WATCH'} (${this._collectionName} ${this._query}) (${this.watchId})');

  try {
    if (this._sessionInfo != null) {
      await this._rebuildWatch();
    } else {
      await this._initWatch();
    }
  } catch (e) {
    Console.error(
        '[realtime] client resume failed (${this._collectionName} ${this._query}) (${this.watchId}), error: ${e.toString()}');
  }
}