Documentation
¶
Overview ¶
Command event-viewer is the worked client from the Protocol adoption track's build-a-client guide (docs/site/protocol/build-a-client.md). It is deliberately SDK-free: pure stdlib against the Harbor Protocol wire — the point is that the Protocol IS the integration surface, no Harbor Go import required. The guide quotes this file; the phase smoke compile-gates it so the listing cannot rot.
What it does, in order:
- Resolves a connection token — HARBOR_TOKEN if set, otherwise the loopback-only dev bootstrap endpoint (`harbor dev` only).
- Calls `runtime.info` and checks Protocol-version compatibility (same major) plus the `events_subscribe` capability.
- Opens the SSE event stream for one session and prints every frame: sequence, type, run, and the payload JSON.
Usage:
harbor dev & go run ./examples/protocol-clients/event-viewer
Click to show internal directories.
Click to hide internal directories.