getAllSession static method

Future<SessionList> getAllSession()

Implementation

static Future<SessionList> getAllSession() async {
  final channel = await Channel.getOpenIoTHubChannel();
  final stub = SessionManagerClient(channel);
  final response = await stub.getAllSession(Empty());
  print('getAllSession received: ${response.sessionConfigs}');
  channel.shutdown();
  return response;
}