GitHub - xydinesh/python-sse: Testing out server sent events with python. Server-sent Events, https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events

2 min read Original article ↗

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Testing out server sent events with python. Server-sent Events, https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events

1 star 0 forks Branches Tags Activity

Notifications You must be signed in to change notification settings

Folders and files

NameName

Last commit message

Last commit date

Latest commit

History

4 Commits

Repository files navigation

python-sse

Testing out server sent events with python

Installation

pip install -r requirements.txt

Server

export FLASK_APP=sse
export FLASK_ENV=development
flask run

Server-sent Events

Specify seconds to sleep before sending response to client. Default is 10 seconds.

curl "http://127.0.0.1:5000/datetime?sleep=3"

Releases

No releases published

Packages

No packages published

Languages