Expand description
Messages of the WebSocket bridge between the browser shim and the server (PRD section 11.2). One JSON message per frame; byte payloads are base64.
Every message has v: 1, a type, and optionally an id. A client message with an
id is answered with ack (replyTo = that id) or error.
Structs§
- Client
Frame - A message from the shim to the server.
- Serial
Signals - Output signals from
SerialPort.setSignals(); only the ones the app set are present. - Server
Frame - A message from the server to the shim.
Enums§
- Bridge
Error Code - Error codes in bridge
errormessages. The shim maps them toDOMExceptionnames. - Client
Message - The body of a
ClientFrame. - Server
Message - The body of a
ServerFrame.
Constants§
- BRIDGE_
VERSION - The protocol version in every message’s
v.