Skip to content

Datatypes

Datatypes that are commonly used in many WebSocket messages over different sections are defined here.

Frame

Holds the Image data, sentinel, and other important information you need for a Frame.

FieldTypeRequiredDescription
sentinelIdstringyesUUID of the sentinel that the Frame belongs to
frameIdstringyesUUID of the frame itself
indexintegeryesIndex of the frame in the order it was created relative to other frames
datastringyesBase64 encoded JPEG data of the image

Example:

{
  "sentinelId": "b255e355-e398-43d7-b772-101bbf4ca8f0",
  "frameId": "4799566e-ecdf-40e0-99c2-7bdc63a4038c",
  "index": 5,
  "data": "/9j/4AAQSkZ....yl0p8Bg/g/wBLj/1bP/F1v0A//9k="
}
Last updated on • J.H.F.