Open ermal-abiti opened 2 years ago
pip install python-socketio[asyncio_client]
This worked for me.
import asyncio
sio = socketio.AsyncClient()
async def main():
await sio.connect('ws://localhost:8000', socketio_path='/ws/socket.io')
asyncio.run(main())
I have an issue connecting to the fastapi-socketio server by a python script. I am running this code:
I also tried with asyncio and i get another error: