返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
a

a2a-market-websocket-realtime

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.2.0
安全检测
已通过
138
下载量
0
收藏
概述
安装方式
版本历史

a2a-market-websocket-realtime

# 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 - Define channel naming and auth guard for buyer, node, and admin roles. - Push canonical domain events with predictable payload shape. - Manage reconnect semantics and last-event cursor replay. ## Suggested Project Layout - `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` ## Minimum 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_CREATED` - `QUOTE_RECEIVED` - `NEGOTIATION_STARTED` - `ORDER_CREATED` - `PAYMENT_SUCCEEDED` ## Guardrails - Keep payloads versioned and backward compatible. - Limit per-connection queue to prevent memory blowups. - Drop unauthorized subscription attempts with structured error codes. ## Implementation Backlog - Add presence channels and typing/status hints for negotiation UI. - Add regional relay nodes for cross-region latency reduction. ## Runtime Implementation - Status: implemented in local runtime package. - Primary code paths: - `runtime/src/interfaces/ws/event-bus.js` - Validation: covered by `runtime/tests` and `npm test` in `runtime/`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 a2a-market-websocket-realtime-1776162198 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 a2a-market-websocket-realtime-1776162198 技能

通过命令行安装

skillhub install a2a-market-websocket-realtime-1776162198

下载 Zip 包

⬇ 下载 a2a-market-websocket-realtime v0.2.0

文件大小: 1.72 KB | 发布时间: 2026-4-17 13:53

v0.2.0 最新 2026-4-17 13:53
sync runtime implementation and validation coverage

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部