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
Description
Real-time channel (SSE or WebSocket) notifying subscribers when stream status or balance snapshot changes.
Requirements and context
Suggested execution
package.json).Implementation targets
src/routes/sse/streams.tsor ws server.Tests and validation
Tests: connection lifecycle with mock events.
Run
npm testandnpm run lintinStreamPay-Backend.Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
Example commit message