getSessionVersion method

Future<int> getSessionVersion()

Implementation

Future<int> getSessionVersion() async {
  if (!await _sessionStore.containsSession(_remoteAddress)) {
    // throw IllegalStateException("No session for ($_remoteAddress)!");
  }

  final record = await _sessionStore.loadSession(_remoteAddress);
  return record.sessionState.getSessionVersion();
}