Skip to content

fix: Expose peer contexts from app connections#190

Draft
benbrandt wants to merge 1 commit into
mainfrom
more-connection-access
Draft

fix: Expose peer contexts from app connections#190
benbrandt wants to merge 1 commit 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.
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