-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
f8fdb24
commit 2d3bea0
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Server Side Events Demo | ||
This demo visualizes events from `tqdm` during a standard HTTP request. | ||
|
||
To start the demo, run: | ||
To start the demo, run: | ||
```bash | ||
python3 test_sse_display_of_tqdm.py | ||
``` | ||
|
||
This will start a Flask server at http://127.0.0.1:8000/. When started, you can click on Ctrl+Click on the link printed on the console to open that page. | ||
|
||
Once the page opens, it should automatically connect to the SSE endpoint (`/events`) and send a request to the `tqdm` endpoint (`/tqdm`). While this is returning, you will see the progress of the `tqdm` instance print as a list on the page. | ||
Once the page opens, it should automatically connect to the SSE endpoint (`/events`) and send a request to the `tqdm` endpoint (`/tqdm`). While this is returning, you will see the progress of the `tqdm` instance print as a list on the page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters