Skip to content

Commit

Permalink
add cloudMetadata client method (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuqdog authored May 14, 2024
1 parent 24c44f5 commit bc6af3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/robot/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import '../resource/registry.dart';
import '../rpc/dial.dart';
import '../rpc/web_rtc/web_rtc_client.dart';

typedef CloudMetadata = GetCloudMetadataResponse;
Logger _logger = Logger();

/// The options that define the behavior of the [RobotClient].
Expand Down Expand Up @@ -227,4 +228,8 @@ class RobotClient {
StreamClient getStream(String name) {
return _streamManager.getStreamClient(name);
}

Future<CloudMetadata> getCloudMetadata() async {
return await _client.getCloudMetadata(GetCloudMetadataRequest());
}
}

0 comments on commit bc6af3e

Please sign in to comment.