pyropy / fastapi-socketio

Easily integrate socket.io with your FastAPI app 🚀
Apache License 2.0
328 stars 31 forks source link

Constant disconnect / reconnect #16

Closed lefnire closed 3 years ago

lefnire commented 3 years ago

Hi, I've got a pretty bare-bones FastAPI new project with fastapi-socketio, and socket.io-client. I set up a simple set-timeout to socket.emit() from the client, but it just disconnects / reconnects. I'lll see if I can show some code soon, but posting first in case there's a common known solution for this?

image

lefnire commented 3 years ago

Was a problem on my end. socket.io-client in a Chrome extension content-script, needed to be background-script