Skip to content

feat: real-time escrow event subscription (SSE + reconnection)#24

Merged
aguilar1x merged 2 commits into
PACTO-LAT:mainfrom
diegocintron:feat/escrow-event-subscription-sse
Jun 19, 2026
Merged

feat: real-time escrow event subscription (SSE + reconnection)#24
aguilar1x merged 2 commits into
PACTO-LAT:mainfrom
diegocintron:feat/escrow-event-subscription-sse

Conversation

@diegocintron

@diegocintron diegocintron commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add SSE-based escrow event subscription on PactoSession via on / off / closeEvents.
  • Support lifecycle events escrow.funded, fiat.reported, released, disputed mapped to Pacto P2P escrow_milestones.
  • Automatic reconnection with cursor-based replay and deduplication so missed events are recovered after network drops.

Closes #14

Test plan

  • npm run lint
  • npm run type-check
  • npm run test
  • SSE parser and heartbeat handling
  • Reconnect replays from last cursor without duplicate dispatch
  • Manual: subscribe after session + escrow create once Gateway SSE endpoint is live

@aguilar1x aguilar1x changed the title feat(core): real-time escrow event subscription (SSE + reconnection) feat: real-time escrow event subscription (SSE + reconnection) Jun 19, 2026
@aguilar1x aguilar1x merged commit 86b12d1 into PACTO-LAT:main Jun 19, 2026
1 check passed
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.

feat(core): real-time escrow event subscription (SSE + reconnection)

2 participants