app/lib/common/grpc/grpc.dart

18 lines
480 B
Dart
Raw Normal View History

2023-12-02 12:26:17 +08:00
import 'package:grpc/grpc.dart';
import 'package:starcitizen_doctor/common/conf.dart';
class GrpcClient {
static final channel = ClientChannel(
'grpc.sctoolbox.xkeyc.com',
port: 8439,
options: ChannelOptions(
credentials: ChannelCredentials.secure(
certificates: AppConf.certData,
authority: 'grpc.sctoolbox.fake.bilibili.com',
),
codecRegistry:
CodecRegistry(codecs: const [GzipCodec(), IdentityCodec()]),
),
);
}