Skip to content

This is a Demo Application build with FastAPi for Implimenting Server Side Events in FastAPI.

Notifications You must be signed in to change notification settings

rama-kairi/FastApi-Server-Side-Events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime Log Streaming with FastAPI and Server-Sent Events

Demo

Setup

Prerequisites

To run this program you will need python 3 (I used 3.8). Then run the following commands:

  • python3 -m venv py38
  • source py38/bin/activate
  • pip install -r requirements.txt

Running the code

  • python server/program.py (runs the app that generates logs)
  • python server/server.py (runs the web server that sends SSE)
  • open client/client.html in a browser to view the events

About

This is a Demo Application build with FastAPi for Implimenting Server Side Events in FastAPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published