fixed persistence error and error with clients sometimes not showing up as connected.

This commit is contained in:
KingKDot
2026-03-08 16:08:04 -05:00
parent ef0ca2994f
commit ed32444495
4 changed files with 44 additions and 2 deletions
@@ -9,6 +9,8 @@ import (
)
func HandlePing(ctx context.Context, env *runtime.Env, envelope map[string]interface{}) error {
env.SetLastPong(time.Now().UnixMilli())
ts := extractTimestamp(envelope["ts"])
if ts == 0 {
ts = time.Now().UnixMilli()