Skip to Content

Inspector events

Inspector traffic is JSON. TypeScript exports a discriminated union InspectorWireEvent covering the common shapes.

Event kinds (non-exhaustive)

event / discriminatorPurpose
BOOTSTRAPInitial catalog + tree (Bootstrap).
RETURN_RESOLVEDA Return(label, value) path completed.
ERROR_THROWNLabeled Throw or unexpected error.
API_RESPONSEApiReturn recorded HTTP response metadata.
MIDDLEWARE_NEXTExpress middleware called next() successfully.
RPC_EXECUTEDInvoke finished (ok/error summary without full body).
JOB_PROGRESSOptional job lifecycle updates (Jobs).
type: 'RPC_RESPONSE'Same payload as HTTP-style RPC result row.
type: 'COVERAGE_REPORT'Coverage scan output when requested.

Socket.IO wraps many of these on the inspector:broadcast channel (INSPECTOR_BROADCAST_EVENT export on the socket-io subpath).

Forward compatibility

  • Ignore unknown event strings or unknown top-level fields.
  • Treat missing optional fields as absent rather than failing parsing.

See also