mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 22:21:58 -06:00
Scaffold Engine application interfaces
This commit is contained in:
16
Data/Engine/interfaces/ws/agents/__init__.py
Normal file
16
Data/Engine/interfaces/ws/agents/__init__.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""Agent WebSocket namespace wiring for the Engine."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from . import events
|
||||
|
||||
|
||||
def register(socketio: Any) -> None:
|
||||
"""Register agent namespaces on the given Socket.IO *socketio* instance."""
|
||||
|
||||
events.register(socketio)
|
||||
|
||||
|
||||
__all__ = ["register"]
|
||||
20
Data/Engine/interfaces/ws/agents/events.py
Normal file
20
Data/Engine/interfaces/ws/agents/events.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""Agent WebSocket event placeholders for the Engine."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
def register(socketio: Any) -> None:
|
||||
"""Register agent-related namespaces on *socketio*.
|
||||
|
||||
The concrete event handlers will be migrated in later phases.
|
||||
"""
|
||||
|
||||
if socketio is None: # pragma: no cover - guard
|
||||
return
|
||||
# Placeholder for namespace registration, e.g. ``socketio.on_namespace(...)``.
|
||||
return
|
||||
|
||||
|
||||
__all__ = ["register"]
|
||||
Reference in New Issue
Block a user