fastapi-socketio
fastapi-socketio copied to clipboard
Easily integrate socket.io with your FastAPI app 🚀
#31 added python socketio.Client example
I'm hitting a 403 locally. Been trying to debug for days. from flask_socketio import SocketIO from flask_cors import CORS from fastapi import FastAPI, WebSocket, Depends from fastapi_socketio import SocketManager from...
This pull request: - Makes the SocketIO routes mount correctly (a4fc06c8b1cea42733db8ca4edcff69151b8c5cd) - Makes SocketManager a subclass of `socketio.AsyncServer` (85df9bc148eb818da008c81d091fe8b88a4510b2) - Inherits all functions and variables from `socketio.AsyncServer` - Cleaner looking...
I'm currently trying to work this module into my Server. I tried to test it via `if __name__ == "__main__": app = FastAPI() socket_manager = SocketManager(app=app) uvicorn.run(app, host="localhost", port=40000) @app.sio.on('join')...
I'm just wondering how to get multiple workers working with socketio (this might be an issue with python-socketio, but I'm not sure). I'm currently on 0.0.10 and have the kwargs...
Do I use the same port as my FastAPI server? I have it running on port 8000, this is what my URL looks like when I try to connect http://localhost:8000/ws/socket.io/...
Where to set pingTimeout for server https://socket.io/docs/v4/server-options/#pingtimeout ?
Hey, could you provide a minimal example how to test the socket manager functions, preferably using FastAPI TestClient?
I am trying to run the [example app](https://github.com/pyropy/fastapi-socketio/blob/master/examples/app.py). Only change is port number 8002 in my code. I see this error when I try to make a WebSocket request to...
In my case, I have problem with import everything from main file (with fastapi app object). https://github.com/michaldev/problem-with-fastapi-import Access to the app object is not required for other libraries.