A step-by-step guide to building a real-time scoreboard using Server-Sent Events (SSE) with Angular on the frontend and NestJS on the backend, organized in an Nx monorepo. Covers setting up the NestJS SSE endpoint using the @Sse decorator with RxJS observables, creating an Angular service that consumes the EventSource API, and wiring up start/stop controls. Compares SSE to SignalR, noting SSE is one-directional but simpler for server-to-client streaming scenarios.

7m read timeFrom playfulprogramming.com
Post cover image
Table of contents
Scenario Copy link Link copied!Setup The Project Copy link Link copied!The API with NextJS Copy link Link copied!Conclusion Copy link Link copied!

Sort: