mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-14 00:55:01 +03:00
a8d0700bf2
* feat(auth): add node-admin API token scope Keep ordinary node-sync credentials unable to self-update a remote panel while allowing explicitly elevated node administrators to inherit synchronization access and invoke updatePanel. * style(docs): format API scope table * fix(auth): preserve mTLS node-sync semantics Allow only an explicit node-admin bearer to elevate a verified mTLS request. Existing admin, monitor, and node-sync bearer values continue to use the historical node-sync identity on mTLS connections. * chore(ci): rerun flaky checks --------- Co-authored-by: libmur-dev <333915961+libmur-dev@users.noreply.github.com>
39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
---
|
|
title: WebSocket
|
|
description: 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.
|
|
full: true
|
|
_openapi:
|
|
preload:
|
|
- ./public/openapi.json
|
|
toc:
|
|
- depth: 2
|
|
title: Upgrade an HTTP connection to a WebSocket. Requires an authenticated
|
|
session cookie (Bearer token auth is not supported here). Returns 101
|
|
Switching Protocols on success. The server then pushes JSON messages
|
|
described below.
|
|
url: '#upgrade-an-http-connection-to-a-websocket-requires-an-authenticated-session-cookie-bearer-token-auth-is-not-supported-here-returns-101-switching-protocols-on-success-the-server-then-pushes-json-messages-described-below'
|
|
structuredData:
|
|
headings:
|
|
- content: Upgrade an HTTP connection to a WebSocket. Requires an authenticated
|
|
session cookie (Bearer token auth is not supported here). Returns 101
|
|
Switching Protocols on success. The server then pushes JSON messages
|
|
described below.
|
|
id: upgrade-an-http-connection-to-a-websocket-requires-an-authenticated-session-cookie-bearer-token-auth-is-not-supported-here-returns-101-switching-protocols-on-success-the-server-then-pushes-json-messages-described-below
|
|
contents: []
|
|
---
|
|
|
|
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
|
|
|
|
export default function Layout(props) {
|
|
const { OpenAPIPage } = props.components ?? {};
|
|
return (
|
|
<>
|
|
{props.children}
|
|
<OpenAPIPage document="./public/openapi.json" webhooks={[]} operations={[{"path":"/ws","method":"get"}]} showTitle />
|
|
</>
|
|
);
|
|
} |