Skip to content

A quick demo of the Server-side events web technology.

License

Notifications You must be signed in to change notification settings

highpps/sse-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sse-demo

This project demonstrates the use of Server-Sent Events (SSE) to simulate the upload of a large IP address list while providing real-time progress updates to the client. The real-time messages are sent on multiple channels.

Only uses built-in features of modern browsers and no server dependencies.

In live deployment, you would probably want to use a library to simplify sending the SSE messages.

Alt text

Prerequisites

  • Python 3.8 or newer.
  • A modern web browser that supports Server-Sent Events (SSE) (e.g., Chrome, Firefox, Edge).

Getting Started

Clone the Repository

git clone https://github.com/highpps/sse-demo.git
cd sse-demo

Run the Server

Ensure you have Python installed.

Start the server:

python3 server.py

Access the Application

Open your browser and go to: http://localhost:8080/. Click the Start Upload button to see the progress bar update in real time.

You can open your browsers developer tools and check the "Network" tab before clicking the button. You can see the live updates there.

About

A quick demo of the Server-side events web technology.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published