Skip to content

feat(session): handle SSE responses in fetch#658

Open
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/session-response-hook
Open

feat(session): handle SSE responses in fetch#658
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/session-response-hook

Conversation

@parvahuja

@parvahuja parvahuja commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • let selected client methods adapt successful paid responses through an internal hook
  • retry Tempo session streams after channel-open acknowledgements and handle voucher and top-up frames in-band
  • preserve application SSE frames, response metadata, cancellation, public method types, and existing SessionManager behavior

Why

Fetch.from completed the initial session challenge but could return the channel-open acknowledgement or expose later payment frames to callers. This completes the session lifecycle at the fetch boundary and returns a normal application Response.

@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@658

commit: a5b80a3

@parvahuja parvahuja force-pushed the parv/session-response-hook branch from 74c853f to ecb1e86 Compare July 15, 2026 22:43
@parvahuja parvahuja force-pushed the parv/session-response-hook branch from ecb1e86 to a5b80a3 Compare July 15, 2026 23:49
@parvahuja parvahuja marked this pull request as ready for review July 15, 2026 23:55
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