Skip to content

feat: implement real-time Horizon SSE streaming for transaction feed (closes #84)#94

Merged
Ibinola merged 1 commit intoIbinola:mainfrom
onahiOMOTI:issue-84
Feb 25, 2026
Merged

feat: implement real-time Horizon SSE streaming for transaction feed (closes #84)#94
Ibinola merged 1 commit intoIbinola:mainfrom
onahiOMOTI:issue-84

Conversation

@onahiOMOTI
Copy link
Contributor

feat: replace polling with real-time Horizon SSE streaming in transaction feed (closes #84)

  • Removed inefficient setTimeout polling
  • Implemented Horizon Server-Sent Events (SSE) via native EventSource
  • Streams live payments for the connected account with cursor=now
  • Added automatic reconnect (5s backoff) on disconnect/error
  • Cleaned up SSE connection on unmount/account/network change
  • Kept initial recent transactions load via regular .call() for instant UI
  • Improved error handling (404 account not found, connection loss)
  • Added manual refresh button + last event timestamp badge
  • More detailed tx display (source account snippet, longer hash)

Runtime i

## Error Message
Failed to connect to MetaMask

    at Object.connect (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/scripts/inpage.js:1:63510)
    at async s (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/scripts/inpage.js:1:61013)

Next.js version: 16.1.6 (Turbopack)
@Ibinola Ibinola merged commit 5d779ac into Ibinola:main Feb 25, 2026
1 check failed
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.

Real-Time Horizon Event Streaming (SSE)

2 participants