getConnection method

SkyServiceClient getConnection({
  1. required String gateway,
})

Implementation

SkyServiceClient getConnection({required String gateway}) {
  ClientChannel channel = ClientChannel(gateway,
      port: Const.PORT,
      options:
          const ChannelOptions(credentials: ChannelCredentials.insecure()));
  return SkyServiceClient(channel);
}