Wire Protocol v3¶
Wire protocol v3 defines the binary frames of a live stream over a WebSocket, including the session handshake, view subscriptions, snapshots, series deltas and data views.
| Field | Value |
|---|---|
| ID | STR-02 |
| Status | Shipped |
| Scope | Core |
| Pillar | Live Data, Streaming and Recordings |
| Sprint | None |
| Depends On | None |
| Unblocks | Browser Elements (EMB-05)Protocol 3.1 Controls ( STR-03)Network Streaming ( STR-05)Clock Exchange ( STR-47) |
| Docs | Wire Protocol |
| Branches | None |
| Design | None |
Coverage Ledger¶
- design/roadmap.md, under Streaming and embedding. Built so far: embedding package, network streaming over protocol v3 with data views, caliper.serve(), notebook widgets, 3.1 controls, app and viewer attach by link, hub, browser views.
- HTTP API, GET /v3/stream. GET /v3/stream serves wire protocol v3 as a hub.
- Wire Protocol, Roles and Terms. Producer, hub and viewer roles of wire protocol v3.
- Wire Protocol, Connection Setup. The upgrade request, hello and welcome, choosing a session and the producer connection to a hub.
- Wire Frames, Frames. The binary frame layout with metadata and sections.
- Wire Protocol, Message Types. The message types from hello to selection.
- Data Messages, Events. Events carried on the stream.
- Wire Protocol, Flow Control. Flow control keeps the latest snapshot and drops older ones.
- Wire Protocol, Resource Limits. The limits of the protocol.
- Wire Protocol, Versioning. Protocol versioning and capabilities.
- Wire Protocol, Close Codes. Close codes.
- Wire Protocol, Error Codes. Error codes.
- Wire Protocol, Security. The stream binds to 127.0.0.1 and requires a token.
- Wire Frames, Worked Example. A worked example of a session.
- Wire Protocol, Golden Frames. Golden frames pin the byte layout.
- Wire Protocol, Header Listing. The protocol header verbatim.
- Pull request #14. Pull request 14 (merged) delivers sprint 2: wire protocol v3 and 3.1, Caliper LIB serving, data views, browser views, the hub, the app attaching to a stream, interactive controls, Caliper API v0, macOS 14 target and CI for the browser views.
- Orchestrators' notes,
sprint2/PR.md. Wire protocol v3 and 3.1 with golden frames decoded by the Python, C++ and TypeScript codecs.