Small clean up and move ping to client.go

Former-commit-id: af33218792
This commit is contained in:
Owen
2026-01-15 14:20:12 -08:00
parent 3710880ce0
commit 9dcc0796a6
4 changed files with 13 additions and 21 deletions

View File

@@ -657,8 +657,11 @@ func (c *Client) pingMonitor() {
c.configVersionMux.RUnlock()
pingMsg := WSMessage{
Type: "ping",
Data: map[string]interface{}{},
Type: "olm/ping",
Data: map[string]any{
"timestamp": time.Now().Unix(),
"userToken": c.config.UserToken,
},
ConfigVersion: configVersion,
}