fix(agent): add retry with backoff and WebSocket connect for daemon registration
This commit is contained in:
parent
8388220dae
commit
6f81a2f3ea
4 changed files with 73 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue