@videosdk.live/server-sdk
    Preparing search index...

    Class Page<T>

    A page of list results. Exposes the current data and a nextCursor, and is async-iterable across all pages:

    const first = await vsdk.rooms.list();
    first.data; // this page
    for await (const room of first) { ... } // every room, auto-fetching pages

    Type Parameters

    • T

    Implements

    • AsyncIterable<T>
    Index
    • Type Parameters

      • T

      Parameters

      • data: T[]

        Items on this page.

      • nextCursor: string | undefined

        Cursor for the next page, or undefined if this is the last page.

      • total: number | undefined

        Total items across all pages (when the API reports it).

      • OptionalfetchNext: (cursor: string) => Promise<Page<T>>

      Returns Page<T>

    data: T[]

    Items on this page.

    nextCursor: string | undefined

    Cursor for the next page, or undefined if this is the last page.

    total: number | undefined

    Total items across all pages (when the API reports it).

    • get hasNextPage(): boolean

      Whether another page is available.

      Returns boolean

    • Returns AsyncIterator<T>