Docs · API reference · Verso.Abstractions

LayoutBridgeProtocol Class#

Identifies the version of the message protocol spoken across the isolated-layout boundary (the host and an Isolated renderer).

public static class LayoutBridgeProtocol

Inheritance System.Object → LayoutBridgeProtocol

Remarks#

The protocol is the set of framework message types exchanged between host and renderer (the verso/ namespace) plus their payload shapes. The host advertises Version to the renderer in the verso/init message (hostProtocolVersion), and a renderer declares the version it was built against through RendererProtocolVersion. Either side can compare the two to detect a mismatch instead of failing opaquely on an unrecognized message.

The version uses a major.minor form. A change to the major component signals an incompatible protocol; a minor bump signals backward-compatible additions (for example a new optional field on an existing message).

1.1 added the optional uiCulture field to verso/init, naming the language the host's interface is drawn in.

Fields#

Version Field#

The protocol version this build of the host speaks and the value a renderer should declare when it targets the current contract.

public const string Version = "1.1";

Field Value#

System.String