RequestMessage: {
    data: Uint8Array;
    documentId: DocumentId;
    senderId: PeerId;
    targetId: PeerId;
    type: "request";

Sent by a Repo to request a document from a peer.

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: "request"


This is identical to a SyncMessage except that it is sent by a Repo as the initial sync message when asking the other peer if it has the document.

Generated using TypeDoc