π¦ ClawHub
a2a-Market-WebSocket-Realtime
by @luoqianchenguni-max
Deliver real-time websocket updates for intent, quote, negotiation, order, and payment events. Use when implementing push channels, subscription authorizatio...
TERMINAL
clawhub install a2a-market-websocket-realtimeπ About This Skill
name: a2a-market-websocket-realtime description: Deliver real-time websocket updates for intent, quote, negotiation, order, and payment events. Use when implementing push channels, subscription authorization, and connection/session lifecycle for market clients.
a2a-Market WebSocket Realtime
Set up realtime delivery skeleton for buyer and operator clients.
Current status: publishable framework with stable event contracts, not full scale tuning.
Scope
Suggested Project Layout
app/interfaces/ws/socket_gateway.pyapp/application/services/realtime_service.pyapp/infrastructure/ws/connection_registry.pyapp/infrastructure/cache/replay_cursor_store.pyMinimum Contracts (MVP P0)
1.subscribe(channel, cursor) validates permission and registers stream.
2. publish_event(channel, event) fans out to online subscribers.
3. resume(channel, cursor) replays missed events within retention window.
4. heartbeat(connection_id) updates liveness and cleanup scheduling.Required Event Coverage
INTENT_CREATEDQUOTE_RECEIVEDNEGOTIATION_STARTEDORDER_CREATEDPAYMENT_SUCCEEDEDGuardrails
Implementation Backlog
Runtime Implementation
runtime/src/interfaces/ws/event-bus.jsruntime/tests and npm test in runtime/.