mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 08:20:02 +02:00
using aiohttp as socketio async_mode
This commit is contained in:
parent
9de4071120
commit
fc738e2743
@ -85,9 +85,9 @@ def setup_sio_server(
|
||||
state_manager = observer.state_manager
|
||||
|
||||
if enable_cors:
|
||||
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*")
|
||||
sio = socketio.AsyncServer(async_mode="aiohttp", cors_allowed_origins="*")
|
||||
else:
|
||||
sio = socketio.AsyncServer(async_mode="asgi")
|
||||
sio = socketio.AsyncServer(async_mode="aiohttp")
|
||||
|
||||
setup_sio_events(sio, state_manager)
|
||||
setup_logging_handler(sio)
|
||||
|
Loading…
x
Reference in New Issue
Block a user