mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-01-13 11:40:27 +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 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 roomClient = partroom.PartRoomServiceClient(channel);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user