An open API service indexing awesome lists of open source software.

https://github.com/utsavdotpro/serversenteventsdemo-node

Simple NodeJS application to try Server-Sent Events (SSEs)
https://github.com/utsavdotpro/serversenteventsdemo-node

expressjs seversentevents sse

Last synced: about 1 month ago
JSON representation

Simple NodeJS application to try Server-Sent Events (SSEs)

Awesome Lists containing this project

README

          

# Sever-Sent Event Demo - Node
Simple NodeJS application to try Server-Sent Events (SSEs). Hosted on Heroku

## Get Started

Install the dependencies

```bash
npm install
```

Run the dev build

```bash
npm run dev
```

## Routes

### /
Returns a simple "Hello" message

### /stream
Opens a stream that prints "Hello", 100 times on a interval of 1 second(s)

## Technologies Used
- [ExpressJS](https://expressjs.com/)

## Credits
- **Hussein Nasser** Tutorial: https://youtu.be/4HlNv1qpZFY