Create dedicated '/users' Socket.IO Namespace

This commit is contained in:
Patrick Jentsch
2024-11-06 13:04:30 +01:00
parent 2a28f19660
commit 289a551122
5 changed files with 97 additions and 145 deletions

View File

@ -132,6 +132,9 @@ def create_app(config: Config = Config) -> Flask:
# region SocketIO Namespaces
from .namespaces.cqi_over_sio import CQiOverSocketIONamespace
socketio.on_namespace(CQiOverSocketIONamespace('/cqi_over_sio'))
from .namespaces.users import UsersNamespace
socketio.on_namespace(UsersNamespace('/users'))
# endregion SocketIO Namespaces
# region Database event Listeners