Skip to content

This project demonstrates how to set up a server and run both the server and client for Server-Sent Events.

Notifications You must be signed in to change notification settings

Harish-clb/server-sent-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Server-Sent Events

This project demonstrates how to set up a server and run both the server and client for Server-Sent Events.

Setup

  1. Clone this repository: git clone https://github.com/Harish-clb/server-sent-events.git
  2. Navigate to the project directory: cd server-sent-events

Server Setup

  1. Install dependencies:
npm install
  1. Running the Server To start the server, run the following command:
npm start

The server will start running on http://localhost:5000.

Running the Client

Navigate to client directory and run the index.html file.

Image

Screenshot of 2 clients where event message is different based on client who takes action

Screenshot of 2 clients

About

This project demonstrates how to set up a server and run both the server and client for Server-Sent Events.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published