mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-01-13 19:50:28 +00:00
feat: add Server ping
This commit is contained in:
parent
28789792ce
commit
5ccd2def37
@ -128,7 +128,17 @@ class PartyRoom extends _$PartyRoom {
|
|||||||
final serverAddress = URLConf.partyRoomServerAddress;
|
final serverAddress = URLConf.partyRoomServerAddress;
|
||||||
final serverPort = URLConf.partyRoomServerPort;
|
final serverPort = URLConf.partyRoomServerPort;
|
||||||
|
|
||||||
final channel = ClientChannel(serverAddress, port: serverPort);
|
final channel = ClientChannel(
|
||||||
|
serverAddress,
|
||||||
|
port: serverPort,
|
||||||
|
options: ChannelOptions(
|
||||||
|
keepAlive: ClientKeepAliveOptions(
|
||||||
|
pingInterval: Duration(seconds: 30),
|
||||||
|
timeout: Duration(seconds: 10),
|
||||||
|
permitWithoutCalls: false,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
final authClient = auth.AuthServiceClient(channel);
|
final authClient = auth.AuthServiceClient(channel);
|
||||||
final roomClient = partroom.PartRoomServiceClient(channel);
|
final roomClient = partroom.PartRoomServiceClient(channel);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user