fix test and dispatcher for pings

This commit is contained in:
KingKDot
2026-04-07 10:43:27 -05:00
parent 0ad98e3f24
commit acc010be81
2 changed files with 10 additions and 2 deletions
@@ -14,6 +14,8 @@ func HandlePing(ctx context.Context, env *runtime.Env, envelope map[string]inter
if ts == 0 {
ts = time.Now().UnixMilli()
}
env.SetLastPong(time.Now().UnixMilli())
pong := wire.Pong{Type: "pong", TS: ts}
go func() {
if err := wire.WriteMsg(ctx, env.Conn, pong); err != nil {