unsprawl.api

Attributes

Classes

Functions

get_simulation()

nexus_endpoint(websocket)

The Nexus: High-level command & control.

advect_endpoint(websocket)

The Firehose: Unidirectional Physics Stream.

Module Contents

app
logger
SIMULATION = None
DIRECTOR = None
get_simulation()[source]
class ConnectionManager[source]
active_connections: list[fastapi.WebSocket] = []
async connect(websocket)[source]
disconnect(websocket)[source]
async broadcast(message)[source]
nexus_manager
async nexus_endpoint(websocket)[source]

The Nexus: High-level command & control. Bi-directional JSON events.

async advect_endpoint(websocket)[source]

The Firehose: Unidirectional Physics Stream. Raw Binary ~60Hz. Zero-Copy from Warp.