A server hosts a FastAPI application and multiple clients can be connected to it via SocketIO.
Executing server.py
sets up the server up and running along with the initialization of the FastAPI application.
When we execute the client1.py
, it creates individual clients who can send and recieve data between clients and the server.
NOTE: each execution of client1.py
will start up a new client.
All of the clients run coherently in the same session of the API.
The file main.py
has the contents for the API.
The file models.py
contains the frame of the database which uses pydantic
.
A server hosts a FastAPI application and multiple clients can be connected to it via SocketIO.
License
Ankit161001/FastAPI_and_SocketIO
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A server hosts a FastAPI application and multiple clients can be connected to it via SocketIO.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published