Coverage for src\zapy\api\deps\socketio.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.3.4, created at 2023-12-20 14:17 -0500

1from typing import Annotated 

2from fastapi import Depends 

3import socketio 

4 

5sio = socketio.AsyncServer(async_mode='asgi') 

6 

7def get_sio(): 

8 return sio 

9 

10SocketIO = Annotated[socketio.AsyncServer, Depends(get_sio)]