fix ping requests, jurastically improve file browser

This commit is contained in:
KingKDot
2026-03-13 13:33:39 -05:00
parent 3beef903c9
commit bcc5c27317
9 changed files with 320 additions and 19 deletions
@@ -15,13 +15,11 @@ func HandlePing(ctx context.Context, env *runtime.Env, envelope map[string]inter
if ts == 0 {
ts = time.Now().UnixMilli()
}
log.Printf("ping: received ts=%d, sending pong", ts)
pong := wire.Pong{Type: "pong", TS: ts}
if err := wire.WriteMsg(ctx, env.Conn, pong); err != nil {
log.Printf("ping: failed to send pong: %v", err)
return err
}
log.Printf("ping: pong sent successfully")
return nil
}