update to handle new structure from spectra, no more gobs (#1266)
This commit is contained in:
+1
-12
@@ -6,7 +6,7 @@ Bridge helpers for external SREBOT transfer.
|
||||
This module provides two pieces:
|
||||
1. A formal SREBOT API client that external consumers can use to query the
|
||||
SREBOT HTTP API.
|
||||
2. A persistent outbox for replay and GOB payloads so the external bridge
|
||||
2. A persistent outbox for replay payloads so the external bridge
|
||||
service can fan them out over websocket.
|
||||
"""
|
||||
|
||||
@@ -210,17 +210,6 @@ async def publish_replay_batch(replays: list[dict[str, Any]]) -> None:
|
||||
await _append_external_envelope(envelope)
|
||||
|
||||
|
||||
async def publish_gob_payload(payload: dict[str, Any]) -> None:
|
||||
"""Queue a GOB payload for websocket delivery by the external bridge."""
|
||||
envelope = {
|
||||
"type": "spectra.gob",
|
||||
"version": 1,
|
||||
"source": "srebot",
|
||||
"payload": payload,
|
||||
}
|
||||
await _append_external_envelope(envelope)
|
||||
|
||||
|
||||
async def publish_event(event_type: str, payload: dict[str, Any]) -> None:
|
||||
"""Generic queue helper for future bridge events."""
|
||||
envelope = {
|
||||
|
||||
Reference in New Issue
Block a user