Skip to content

Live status over WebSocket #9

Description

@iexwr

Context

The dashboard/request page currently relies on polling or reload; status changes (paid) should appear without manual refresh.

Acceptance criteria

  • Subscribe to a request room via the Socket.IO client (socket.emit('subscribe', { requestId })).
  • On request:paid / request:cancelled, update the local status immediately.
  • Clean up the subscription on unmount.

Technical notes

  • Reuse socket.io-client (dependency present).
  • Guard against reconnect storms (single subscription per mounted component).

Testing

  • Test that a simulated socket event updates component state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveStellar Wave for StackPayenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions