mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
experiment(app): make socketio server ping every 1s
This commit is contained in:
@@ -90,7 +90,7 @@ class SocketIO:
|
||||
_unsub_bulk_download = "unsubscribe_bulk_download"
|
||||
|
||||
def __init__(self, app: FastAPI):
|
||||
self._sio = AsyncServer(async_mode="asgi", cors_allowed_origins="*")
|
||||
self._sio = AsyncServer(async_mode="asgi", cors_allowed_origins="*", ping_interval=1)
|
||||
self._app = ASGIApp(socketio_server=self._sio, socketio_path="/ws/socket.io")
|
||||
app.mount("/ws", self._app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user