fix(agent): add retry with backoff and WebSocket connect for daemon registration

This commit is contained in:
Deivid Soto 2026-04-06 17:26:32 +02:00
parent 8388220dae
commit 6f81a2f3ea
4 changed files with 73 additions and 6 deletions

View file

@ -6,6 +6,7 @@ import "context"
// Both WebSocket (via CF Durable Object) and HTTP (direct to origin) implement this.
type Transport interface {
// Connect establishes the transport connection.
// Called internally by Daemon.Run — callers must NOT call Connect separately.
Connect(ctx context.Context) error
// Close tears down the connection gracefully.