add auto recovery, send group with their active profiles, make warp more robust thanks to uoosef, support multiple receiver for command group

This commit is contained in:
Hiddify
2024-02-13 03:47:34 +01:00
parent a2f5708e58
commit a1314d84a9
5 changed files with 15 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ func StartCommand(command int32, port int64, logFactory log.Factory) error {
},
&libbox.CommandClientOptions{
Command: libbox.CommandStatus,
StatusInterval: 1000000000,
StatusInterval: 1000000000, //1000ms debounce
},
)
return statusClient.Connect()
@@ -33,7 +33,7 @@ func StartCommand(command int32, port int64, logFactory log.Factory) error {
},
&libbox.CommandClientOptions{
Command: libbox.CommandGroup,
StatusInterval: 30,
StatusInterval: 300000000, //300ms debounce
},
)
return groupClient.Connect()
@@ -45,7 +45,7 @@ func StartCommand(command int32, port int64, logFactory log.Factory) error {
},
&libbox.CommandClientOptions{
Command: libbox.CommandGroupInfoOnly,
StatusInterval: 10,
StatusInterval: 300000000, //300ms debounce
},
)
return groupInfoOnlyClient.Connect()