GetAllHosts static method
Implementation
static Future<HostInfoList> GetAllHosts() async {
String jwt = await getJWT();
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = HostManagerClient(channel,
options: CallOptions(metadata: {'jwt': jwt}));
Empty empty = Empty();
HostInfoList hostInfoList = await stub.getAllHosts(empty);
print('GetAllHosts: ${hostInfoList}');
channel.shutdown();
return hostInfoList;
}