Skip to content

Commit bc6af3e

Browse files
authored
add cloudMetadata client method (#209)
1 parent 24c44f5 commit bc6af3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/robot/client.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import '../resource/registry.dart';
1414
import '../rpc/dial.dart';
1515
import '../rpc/web_rtc/web_rtc_client.dart';
1616

17+
typedef CloudMetadata = GetCloudMetadataResponse;
1718
Logger _logger = Logger();
1819

1920
/// The options that define the behavior of the [RobotClient].
@@ -227,4 +228,8 @@ class RobotClient {
227228
StreamClient getStream(String name) {
228229
return _streamManager.getStreamClient(name);
229230
}
231+
232+
Future<CloudMetadata> getCloudMetadata() async {
233+
return await _client.getCloudMetadata(GetCloudMetadataRequest());
234+
}
230235
}

0 commit comments

Comments
 (0)