@super-line/control-center 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -7,13 +7,17 @@ A zero-install debugging webapp for inspecting a running [super-line](https://gi
|
|
|
7
7
|
**1. Turn on the inspector** on each server node you want to reach (off by default):
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
|
+
import { webSocketServerTransport } from '@super-line/transport-websocket'
|
|
11
|
+
|
|
10
12
|
const srv = createSuperLineServer(contract, {
|
|
11
|
-
server,
|
|
13
|
+
transports: [webSocketServerTransport({ server, inspector: true })], // negotiates the inspector subprotocol
|
|
12
14
|
authenticate,
|
|
13
|
-
inspector: true, //
|
|
15
|
+
inspector: true, // gates the reserved `superline.inspector.v1` channel (server-authoritative)
|
|
14
16
|
})
|
|
15
17
|
```
|
|
16
18
|
|
|
19
|
+
The inspector is server-authoritative: pass `inspector: true` **both** on the server opts (to gate the telemetry) **and** on `webSocketServerTransport` (to negotiate the subprotocol).
|
|
20
|
+
|
|
17
21
|
**2. Run the Control Center** and point it at any node:
|
|
18
22
|
|
|
19
23
|
```sh
|