Skip to content

Expose daemon connection liveness#62

Open
calebnorman wants to merge 1 commit into
Factory-AI:mainfrom
calebnorman:caleb/expose-daemon-connection-liveness
Open

Expose daemon connection liveness#62
calebnorman wants to merge 1 commit into
Factory-AI:mainfrom
calebnorman:caleb/expose-daemon-connection-liveness

Conversation

@calebnorman
Copy link
Copy Markdown

Summary

  • expose DaemonConnection.isConnected as a public getter
  • delegate to the underlying WebSocket transport liveness state

Why

Consumers that keep a daemon connection cached need a supported way to distinguish a healthy socket from a closed/disconnected connection without reaching into private transport fields.

Verification

  • npm run typecheck
  • npm test currently has one unrelated local-environment failure: tests/daemon/local.test.ts > ignores stale port file when port is unreachable resolves because a local daemon is reachable on port 37643.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant