SyncMessage: {
    data: Uint8Array;
    documentId: DocumentId;
    senderId: PeerId;
    targetId: PeerId;
    type: "sync";
}

A sync message for a particular document

Type declaration

  • data: Uint8Array

    The automerge sync message

  • documentId: DocumentId

    The document ID of the document this message is for

  • senderId: PeerId
  • targetId: PeerId
  • type: "sync"