参考API 参考
WebSocket
通过 WebSocket 获取实时状态更新。只需在 <code>ws://<panel>/ws</code> 建立一次连接,即可接收 JSON 消息流,无需轮询。需要经过身份验证的会话 Cookie(不支持 Bearer token 身份验证)。每条消息都带有一个 <code>type</code> 字段,用于标识其载荷结构。
AuthorizationBearer <token>
API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Response Body
application/json
curl -X GET "https://example.com/ws"{ "success": true, "msg": "string", "obj": null}
3x-ui