3x-ui3x-ui

WebSocket

Real-time status updates via WebSocket. Connect once at <code>ws://<panel>/ws</code> to receive a stream of JSON messages without polling. Requires an authenticated session cookie (Bearer token auth is not supported). Each message has a <code>type</code> field that identifies the payload shape.

GET
/ws

Authorization

cookieAuth
cookie3x-ui<token>

Session cookie set by POST /login. Browser-only.

Response Body

Switching Protocols. WebSocket messages use WebSocketEnvelope.

curl -X GET "https://example.com/ws"
Empty