mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-24 00:03:45 +08:00
18 lines
480 B
Dart
18 lines
480 B
Dart
|
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()]),
|
||
|
),
|
||
|
);
|
||
|
}
|