Skip to content

redsun.services.sharedbox

BoxTransport dataclass

BoxTransport()

Bases: Transport

Serve a FastCS controller as sharedbox boxes, one per controller.

connect

connect(
    controller_apis: list[ControllerAPI],
    loop: AbstractEventLoop,
) -> None

Describe the controller tree and publish its boxes, then the index.

serve async

serve() -> None

Mirror attribute updates into the boxes and answer requests until cancelled.

reachable async

reachable() -> None

Return once the index is published.