Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计通过

steedos-server-websocketSteedos 服务器 websocket

Agent Skill

steedos-server-websocket 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

303

周安装

13

GitHub Stars

1,603

下载量

106
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:steedos-server-websocket(Steedos 服务器 websocket)
来源仓库:https://github.com/steedos/steedos-platform
仓库路径:skills/steedos-server-websocket
安装命令:
npx skills add https://github.com/steedos/steedos-platform --skill steedos-server-websocket
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/steedos/steedos-platform --skill steedos-server-websocket

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • steedos-server-websocket 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Steedos Server WebSocket | Steedos 服务端 WebSocket

Overview | 概述

Steedos Server uses Socket.IO via @nestjs/websockets for real-time communication. The AppGateway handles connections, authentication, room subscriptions, and event broadcasting.

Steedos 服务端使用 Socket.IO 进行实时通信。AppGateway 处理连接、认证、房间订阅和事件广播。

Gateway Configuration | 网关配置

@WebSocketGateway({ path: "/socket.io/", cors: true })
export class AppGateway implements OnGatewayConnection, OnGatewayDisconnect
  • Path: /socket.io/
  • CORS: Enabled for all origins
  • Adapter: HybridAdapter from @builder6/core

Connection Authentication | 连接认证

On connect, the gateway authenticates via cookies from the handshake:

  1. Parse cookie header from socket.handshake.headers
  2. Extract X-Space-Id (tenant) and X-Auth-Token (auth token)
  3. Validate via AuthService.getUserByToken(token)
  4. Create session: {user, anonymous, system, portal: {tenantId}}

Unauthenticated connections are marked as anonymous.

Room System | 房间系统

Rooms are scoped by tenant ID to ensure multi-tenant isolation:

Room format: {tenantId}-{roomPart}
Individual:  {roomPart}-{userId}

Subscribe / Unsubscribe | 订阅 / 取消订阅

// Client-side
socket.emit("subscribe", {
  roomParts: ["orders", "notifications"],
  individual: false          // shared room
});

socket.emit("subscribe", {
  roomParts: "notification-change",
  individual: true           // per-user room: "notification-change-{userId}"
});

socket.emit("unsubscribe", {
  roomParts: ["orders"]
});

Events | 事件

Client → Server

EventPayloadDescription
subscribe{roomParts, individual}Join rooms
unsubscribe{roomParts, individual}Leave rooms
pingdateSystem connection keep-alive

Server → Client

EventPayloadDescription
connection-initSent on successful connection
pongUTC dateResponse to ping
s:metadata:change{type, action, _id, name, objectName}Metadata change (objects, fields, apps, etc.)
s:notification-change{message}User notification (per-user room)
s:record:{objectApiName}:change-{id}{_id}Record change event

Metadata Change Events | 元数据变更事件

Triggered when objects, fields, listviews, actions, or apps change:

// Emitted to ALL connected clients (global broadcast)
socket.on("s:metadata:change", ({ type, action, _id, name, objectName }) => {
  // type: "apps", "objects", "object_listviews", "object_actions", "object_fields"
  // action: "insert", "update", "delete"
  // Refresh UI accordingly
});

Record Change Events | 记录变更事件

Scoped to specific rooms for fine-grained updates:

// Client subscribes to a specific record
socket.emit("subscribe", {
  roomParts: `record:orders:change-${recordId}`,
  individual: false
});

// Server emits when record changes
socket.on(`s:record:orders:change-${recordId}`, ({ _id }) => {
  // Reload record
});

Room name format: {tenantId}-record:{objectApiName}:change-{recordId}

Notification Events | 通知事件

Per-user notifications via individual rooms:

// Client subscribes
socket.emit("subscribe", {
  roomParts: "notification-change",
  individual: true    // creates room: "notification-change-{userId}"
});

// Server pushes notification
socket.on("s:notification-change", ({ message }) => {
  // Show notification
});

Moleculer Integration | Moleculer 集成

The WebSocket gateway is tightly integrated with Moleculer events:

Moleculer EventWebSocket Action
$metadata.*s:metadata:change (global broadcast)
$broadcast.$notification.userss:notification-change (per-user rooms)
$broadcast.socket.emit→ Generic socket emit with optional room
@objectRecordEvent.*.*s:record:{obj}:change-{id} (record rooms)
$socket.subscribe.*Moleculer event emitted when client subscribes

Broadcasting from Moleculer Services | 从 Moleculer 服务广播

// Emit to specific room from a Moleculer service
broker.emit("$broadcast.socket.emit", {
  data: {
    eventName: "custom-event",
    eventParams: { key: "value" },
    room: "tenantId-room-name"    // optional, omit for global
  }
});

// Send notification to specific users
broker.emit("$broadcast.$notification.users", {
  data: {
    tenantId: "space_id",
    users: ["user1", "user2"],
    message: "You have a new task"
  }
});

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.27%
按下载量换算38

Claude

30.45%
按下载量换算32

Cursor

20.31%
按下载量换算22

Gemini CLI

8.95%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills