fastapi-socketio
fastapi-socketio copied to clipboard
Easily integrate socket.io with your FastAPI app 🚀
I have an issue connecting to the fastapi-socketio server by a python script. I am running this code: ```python import socketio sio = socketio.Client() sio.connect('http://0.0.0.0:8000') ``` I also tried with...
It may be desired (as in my case) to not use the AsyncServer, could allow an argument in the constructor to choose which server type to use.
Hi, Within VSCode I'm getting some type errors: ``` Cannot access member "sio" for type "FastAPI" Member "sio" is unknown ``` Which makes sense because as far as VSCode knows...
Hello humans, I faced an issue when I was trying to use fastapi-socketio and the CORSMiddleware ``` app = FastAPI() sio = SocketManager(app=app) # CORS # Set all CORS enabled...
So that we can use Redis or RabbitMQ to make socket.io work in a multi process context. See https://python-socketio.readthedocs.io/en/latest/server.html?highlight=redis#using-a-message-queue
Hey, how can i write my sockets on other folder/file and to tell my main.py to execute them? my main file: from fastapi import FastAPI from starlette.middleware.cors import CORSMiddleware def...
_(This may be a documentation issue -- in any case, this may be helpful to someone else)_ **EDIT** I see this problem is mentioned in issue #2, but I didn't...
I am a newbie and trying to figure out authentication. Are there any guidelines on the same? I was able to add extra_headers on client side, but unable to find...
The @sio.on decorator is not working for me. What am I doing wrong ?