Files
dify/api/extensions/ext_socketio.py
T

5 lines
194 B
Python
Raw Normal View History

2026-04-16 10:21:04 +08:00
import socketio # type: ignore[reportMissingTypeStubs]
from configs import dify_config
sio = socketio.Server(async_mode="gevent", cors_allowed_origins=dify_config.CONSOLE_CORS_ALLOW_ORIGINS)