Trilium Backend API
    Preparing search index...

    Interface OnReadOpts

    interface OnReadOpts {
        buffer: Uint8Array<ArrayBufferLike> | (() => Uint8Array);
        callback(bytesWritten: number, buffer: Uint8Array): boolean;
    }
    Index
    buffer: Uint8Array<ArrayBufferLike> | (() => Uint8Array)
    • This function is called for every chunk of incoming data. Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. Return false from this function to implicitly pause() the socket.

      Parameters

      • bytesWritten: number
      • buffer: Uint8Array

      Returns boolean