This project demonstrates how to set up a server and run both the server and client for Server-Sent Events.
- Clone this repository:
git clone https://github.com/Harish-clb/server-sent-events.git
- Navigate to the project directory:
cd server-sent-events
- Install dependencies:
npm install
- Running the Server To start the server, run the following command:
npm start
The server will start running on http://localhost:5000
.
Navigate to client directory and run the index.html file.
Screenshot of 2 clients where event message is different based on client who takes action