mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-27 18:01:58 -06:00
Scaffold Engine application interfaces
This commit is contained in:
16
Data/Engine/interfaces/ws/job_management/__init__.py
Normal file
16
Data/Engine/interfaces/ws/job_management/__init__.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""Job management WebSocket namespace wiring for the Engine."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from . import events
|
||||
|
||||
|
||||
def register(socketio: Any) -> None:
|
||||
"""Register job management namespaces on the given Socket.IO *socketio*."""
|
||||
|
||||
events.register(socketio)
|
||||
|
||||
|
||||
__all__ = ["register"]
|
||||
19
Data/Engine/interfaces/ws/job_management/events.py
Normal file
19
Data/Engine/interfaces/ws/job_management/events.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""Job management WebSocket event placeholders for the Engine."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
def register(socketio: Any) -> None:
|
||||
"""Register job management namespaces on *socketio*.
|
||||
|
||||
Concrete handlers will be migrated in later phases.
|
||||
"""
|
||||
|
||||
if socketio is None: # pragma: no cover - guard
|
||||
return
|
||||
return
|
||||
|
||||
|
||||
__all__ = ["register"]
|
||||
Reference in New Issue
Block a user