The NestJS Server-Sent Events repository is a practical resource that demonstrates the integration of Server-Sent Events (SSE) with NestJS. SSE is a technology that enables real-time communication between a server and a client. This repository provides a straightforward approach to implementing SSE in your NestJS applications.
demo.webm.mp4
-
NestJS Integration: Learn how to seamlessly integrate SSE functionality into your NestJS application. The repository includes well-structured code examples and best practices for a smooth implementation.
-
Real-time Communication: Experience the power of real-time communication with SSE. Establish and maintain a persistent connection between the server and clients, enabling instant updates.
-
Event-Driven Architecture: Explore how SSE fits into event-driven architecture. Define and handle custom events, allowing clients to subscribe to specific event types and receive targeted updates.
-
Scalability and Performance: Discover techniques for optimizing scalability and performance. Learn how to efficiently manage multiple clients and minimize server resource usage.
$ npm install
# watch mode
$ npm run start:dev
Access
http://localhost:3000
to see the client
Contributions are welcome! If you find a bug or want to add a new feature, please submit an issue or a pull request.
This project is licensed under the MIT License.