clientConnect method

dynamic clientConnect()

Implementation

clientConnect()
  async {

    final channel = ClientChannel(
      'localhost',
      port: 5000,
      options: const ChannelOptions(credentials: ChannelCredentials.insecure()),
    );

    final stub = AlbumServiceClient(channel);
    print("connection is done...");
// unary style responses
    var response = await stub.getAlbums(AlbumRequest());
    print('Response received: ${response.writeToJson()}');
  }