Skip to content

WebSocket or SSE: push stream status updates to clients #35

@greatest0fallt1me

Description

@greatest0fallt1me

Description

Real-time channel (SSE or WebSocket) notifying subscribers when stream status or balance snapshot changes.

Requirements and context

  • Auth for subscription.
  • Backpressure strategy documented.

Suggested execution

  • Fork the repository and create a branch (example below).
  • Implement changes in StreamPay-Backend (TypeScript / Express per package.json).
  • Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b feature/sse-stream-updates

Implementation targets

  • src/routes/sse/streams.ts or ws server.
  • Pub/sub from ingestion service.

Tests and validation

  • Tests: connection lifecycle with mock events.

  • Run npm test and npm run lint in StreamPay-Backend.

  • Cover edge cases; include test output and brief security notes in the PR description.

Guidelines

  • Target minimum 95% test coverage on new or changed backend code (or justify gaps).
  • Clear documentation (OpenAPI / README / inline docs as specified).
  • Timeframe: 96 hours from assignment.

Example commit message

feat(backend): real-time stream update channel

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions