Set up realtime delivery skeleton for buyer and operator clients.
Current status: publishable framework with stable event contracts, not full scale tuning.
app/interfaces/ws/socket_gateway.py
app/application/services/realtime_service.py
app/infrastructure/ws/connection_registry.py
app/infrastructure/cache/replay_cursor_store.py
subscribe(channel, cursor) validates permission and registers stream.
publish_event(channel, event) fans out to online subscribers.
resume(channel, cursor) replays missed events within retention window.
heartbeat(connection_id) updates liveness and cleanup scheduling.
INTENT_CREATED
QUOTE_RECEIVED
NEGOTIATION_STARTED
ORDER_CREATED
PAYMENT_SUCCEEDED
runtime/src/interfaces/ws/event-bus.js
runtime/tests and npm test in runtime/.
共 1 个版本