← 返回 Skills 市场
wpank

Websocket Hub Patterns

作者 wpank · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
834
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install websocket-hub-patterns
功能描述
Horizontally-scalable WebSocket hub pattern with lazy Redis subscriptions, connection registry, and graceful shutdown. Use when building real-time WebSocket servers that scale across multiple instances. Triggers on WebSocket hub, WebSocket scaling, connection registry, Redis WebSocket, real-time gateway, horizontal scaling.
安全使用建议
This skill is a reusable design pattern (sample Go code) for building horizontally-scalable WebSocket hubs with Redis; it is internally consistent. Before using in production: verify the code fits your auth model (you will need to supply Redis credentials and secure client auth), review and test error handling/timeouts/rate-limiting, and confirm the source is trustworthy (homepage is missing and the registry source is 'unknown' — prefer code from a known repo or audit the files you copy). The README references npx/copy-based installation hints rather than a vetted package—treat any downloaded code like third-party code and review it before running in your environment.
功能分析
Type: OpenClaw Skill Name: websocket-hub-patterns Version: 1.0.0 The skill bundle describes and illustrates a standard, horizontally-scalable WebSocket hub pattern using Redis for coordination. The Go code snippets demonstrate common, benign architectural patterns. Neither the `SKILL.md` nor `README.md` contain any evidence of prompt injection attempts, data exfiltration, unauthorized command execution, persistence mechanisms, or other malicious intent. The installation methods are standard for the OpenClaw platform and do not introduce new vulnerabilities beyond typical supply chain considerations for any package manager.
能力评估
Purpose & Capability
The name/description (WebSocket hub + Redis coordination) match the content: Go code patterns for connection registry, lazy Redis subscriptions, message forwarding, and graceful shutdown. No unexplained credentials, binaries, or unrelated capabilities are requested.
Instruction Scope
SKILL.md contains design explanation and sample Go code only. It does not instruct the agent to read arbitrary files, access unrelated environment variables, exfiltrate data, or contact external endpoints beyond developer install hints. All shown actions are scoped to implementing a WebSocket hub.
Install Mechanism
There is no formal install spec in the registry entry (instruction-only). README shows developer install hints (npx, copying into local skill folders). No downloads or extract-from-URL install steps that would write or execute arbitrary remote code. This is low-risk for the platform.
Credentials
The skill declares no required env vars or credentials. The Go patterns reference a Redis client (expected for Redis-backed coordination) but do not request credentials in the skill metadata—credential needs would arise only when a developer implements the pattern (e.g., providing Redis endpoint/credentials), which is proportionate to the purpose.
Persistence & Privilege
The skill is not always-enabled and is user-invocable. It does not request persistent system-wide configuration changes or access to other skills' configs. Autonomous invocation is allowed (platform default) but reasonable for an instruction-only developer pattern.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install websocket-hub-patterns
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /websocket-hub-patterns 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of websocket-hub-patterns skill. - Provides horizontally-scalable WebSocket hub architecture with Redis-backed pub/sub. - Implements lazy Redis subscriptions for efficient resource usage. - Includes connection registry for distributed instance tracking and scaling. - Supports graceful shutdown, cleaning up Redis subscriptions and active connections. - Documents practical Go implementation patterns and anti-patterns for real-time messaging.
元数据
Slug websocket-hub-patterns
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Websocket Hub Patterns 是什么?

Horizontally-scalable WebSocket hub pattern with lazy Redis subscriptions, connection registry, and graceful shutdown. Use when building real-time WebSocket servers that scale across multiple instances. Triggers on WebSocket hub, WebSocket scaling, connection registry, Redis WebSocket, real-time gateway, horizontal scaling. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 834 次。

如何安装 Websocket Hub Patterns?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install websocket-hub-patterns」即可一键安装,无需额外配置。

Websocket Hub Patterns 是免费的吗?

是的,Websocket Hub Patterns 完全免费(开源免费),可自由下载、安装和使用。

Websocket Hub Patterns 支持哪些平台?

Websocket Hub Patterns 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Websocket Hub Patterns?

由 wpank(@wpank)开发并维护,当前版本 v1.0.0。

💬 留言讨论