-
-
Notifications
You must be signed in to change notification settings - Fork 627
Closed
Description
I am trying to integrate this into a FastAPI application as an ASGI sub-application. It is deployed on Kubernetes and everything works fine with a single replica; as soon as i increase that it fails. I had thought by passing the redis server running on the cluster to the client_manager kwarg to the socketio.AsyncServer this would work, but i always get errors like below.
mgr = socketio.AsyncRedisManager(
f"redis://{os.getenv('REDIS_HOST', 'localhost')}"
)
sio = socketio.AsyncServer(
cors_allowed_origins="*", async_mode="asgi", client_manager=mgr
)
# Invalid session hH5knPe_GeTb_i3fAAAA (further occurrences of this error will be logged with level INFO)```
Could this conceptually work or am i missing something?
Metadata
Metadata
Assignees
Labels
No labels