getRuntimeId method

Future<PublicRuntimeId> getRuntimeId()
inherited

Returns the runtime id of this Ouisync instance.

The runtime id is a unique identifier of this instance which is randomly generated every time Ouisync starts.

Implementation

Future<PublicRuntimeId> getRuntimeId(
) async {
  final request = RequestSessionGetRuntimeId(
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponsePublicRuntimeId(value: final value): return value;
    default: throw UnexpectedResponse();
  }
}