Skip to content

Documentation / @super-line/core / ConnView

Interface: ConnView

Defined in: packages/core/src/inspector.ts:76

A connection's detail — what getConn returns. ctx/data/env are node-local and best-effort safe-serialized.

Properties

ctx?

optional ctx?: unknown

Defined in: packages/core/src/inspector.ts:79

Safe-serialized auth ctx; present only when the conn is on the queried node.


ctxAvailable

ctxAvailable: boolean

Defined in: packages/core/src/inspector.ts:89

Whether ctx/data/env could be read (false for conns on another node).


data?

optional data?: unknown

Defined in: packages/core/src/inspector.ts:81

Safe-serialized conn.data; present only when the conn is on the queried node.


descriptor

descriptor: ConnDescriptor

Defined in: packages/core/src/inspector.ts:77


env?

optional env?: unknown

Defined in: packages/core/src/inspector.ts:87

Safe-serialized conn.env (ADR-0012), MASKED: values hidden unless the key is allow-listed via the inspector's revealEnvKeys (env holds credentials, so it is masked by default — the opposite of ctx/data). Present only when the conn is on the queried node.

Released under the MIT License.