服务器消息
从 WebSocket 服务器接收的消息
连接已确认{
"type": "connected",
"message": "Connected successfully...",
"available_commands": ["subscribe", "unsubscribe", "list_subscriptions"],
"view_mode": "full"
}
订阅已确认{
"type": "subscribed",
"channel": "Shopify",
"channel_id": "a1b2c3d4-..."
}
技术检测信息{
"type": "message",
"channel": "Shopify",
"channel_id": "a1b2c3d4-...",
"data": {
"channel_name": "Shopify",
"website_domain": "example.com",
"epoch_secs": 1770508800
}
}
状态变更(订阅级别已更改){
"type": "status_change",
"view_mode": "full",
"message": "Your subscription has been upgraded. You now have full data access."
}
错误信息{
"type": "error",
"message": "Technology 'unknown-tech' not found"
}
消息字段| 场地 | 描述 |
|---|
type | 消息类型:已连接、已订阅、已取消订阅、消息、状态更改、错误、信息 |
channel | 友好的频道名称(例如,“Shopify”、“new”) |
channel_id | 内部通道 ID(技术 GUID 或“新”) |
data | 检测有效载荷包含 channel_name、website_domain 和 epoch_secs |
website_domain | 技术检测所在领域(为试用用户已隐去相关信息) |
epoch_secs | 检测任务被加入队列时的 Unix 时间戳(秒) |
view_mode | 付费用户可查看“完整版”,试用用户可查看“已编辑(试用/预览)”版 |