implement client heartbeat #460.

This commit is contained in:
Miroslav Šedivý
2024-12-30 13:41:22 +01:00
parent 5169e0aad3
commit 3082d3241b
14 changed files with 62 additions and 7 deletions
+4
View File
@@ -9,6 +9,10 @@ const (
SYSTEM_HEARTBEAT = "system/heartbeat"
)
const (
CLIENT_HEARTBEAT = "client/heartbeat"
)
const (
SIGNAL_REQUEST = "signal/request"
SIGNAL_RESTART = "signal/restart"
+1
View File
@@ -47,6 +47,7 @@ type Settings struct {
ImplicitHosting bool `json:"implicit_hosting"`
InactiveCursors bool `json:"inactive_cursors"`
MercifulReconnect bool `json:"merciful_reconnect"`
HeartbeatInterval int `json:"heartbeat_interval"`
// plugin scope
Plugins PluginSettings `json:"plugins"`