@voidmerge/voidmerge-client
    Preparing search index...

    Class VoidMergeClient

    A VoidMergeClient can talk to VoidMerge servers.

    Index

    Constructors

    Methods

    • Send a message to a remote peer.

      Parameters

      • peerHash: VmHash
      • data: Uint8Array

      Returns Promise<void>

    • Set a message callback for handling incoming message data.

      Parameters

      Returns void

    • Set the ShortCache to use when fetching VmObjSigned data.

      It is recommended to use the same short cache across all clients to ensure the memory usage is bounded for the entire application.

      Parameters

      Returns void