Expand description
Wire protocol types for OGraf v1 Server API — messages sent between
server and renderer over WebSocket. These types define the JSON structure
on the wire; server-internal bookkeeping lives in models.
Structs§
- Instance
Snapshot - Instance state snapshot sent by a renderer during reconnect (Hello message). Contains the minimal information needed to resync Core’s view of what instances are loaded on the renderer.
Enums§
- Renderer
Message - Messages received from a renderer over its WebSocket.
- Server
Message - Messages sent from the server to a renderer over its WebSocket. Every
variant carries a
request_idso the HTTP handler that triggered it can correlate the renderer’s eventual*Resultreply (see RendererMessage) and return the real statusCode/statusMessage, per the OGraf spec.
Type Aliases§
- Instance
Id - Render
Target - Identifies a RenderTarget on a Renderer. Per the OGraf spec, its shape is
defined by each Renderer’s own
renderTargetSchema— Core treats it as an opaque, shallow JSON object and only ever compares it for equality. For example, a CasparCG renderer might use{channel, layer}, fixed for the lifetime of one WS connection; other renderer types (eg a file-render worker) are free to use a different shape (eg{profile: "16:9-1080p"}).