Skip to content

权限范围

WebSocket 连接只能访问当前 API Client 有权访问的设备。

Scope

TopicScope
session.ping已认证连接
device.status.getdevice:read
device.operation.executedevice:control
device.connection.onlinedevice:read
device.connection.offlinedevice:read
device.state.changeddevice:read
device.power.lostdevice:read

规则

  • 创建 wsTicket 需要有效 access token
  • 建立连接后,服务根据创建 ticket 时的 API Client 权限判断可访问范围
  • 客户端只能接收其有权访问设备的事件
  • access token 过期、API Client 被禁用或权限范围被调整时,已有连接可能被关闭

继续阅读

Docs buildVersion v1.2.19-20260602-174859-60
Copyright © 2026 WLTE