Skip to content

fix: Expose peer contexts from app connections#190

Merged
benbrandt merged 2 commits into
mainfrom
more-connection-access
Jun 19, 2026
Merged

fix: Expose peer contexts from app connections#190
benbrandt merged 2 commits into
mainfrom
more-connection-access

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Return side-specific connection handles from AgentApp.connect and
ClientApp.connect so connection-scoped code can call the peer through
.client or .agent outside request handlers.

Add symmetric onConnect hooks for app-owned connection setup, route
connectWith through the same handles, and keep the exposed contexts backed by
the shared underlying ConnectionContext.

Return side-specific connection handles from AgentApp.connect and
ClientApp.connect so connection-scoped code can call the peer through
.client or .agent outside request handlers.

Add symmetric onConnect hooks for app-owned connection setup, route
connectWith through the same handles, and keep the exposed contexts backed by
the shared underlying ConnectionContext.
@benbrandt benbrandt marked this pull request as ready for review June 19, 2026 08:58
@benbrandt benbrandt enabled auto-merge (squash) June 19, 2026 08:58
@benbrandt benbrandt merged commit d657310 into main Jun 19, 2026
6 checks passed
@benbrandt benbrandt deleted the more-connection-access branch June 19, 2026 08:59
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