Hierarchy

Constructors

  • Parameters

    • clientId: string
    • clientSecret: string
    • Optional timerMinutes: number

    Returns Stream

Properties

#announce: Announcements
#announcements: Map<string, AnnounceData> = ...
#cache: Map<string, LiveStream> = ...
#clientId: string
#clientSecret: string
#data: string[]
#debug: boolean
#stream: EventEmitter = ...
#timer: number = ...

Note

In ms.

#toggles: {
    ended: boolean;
    live: boolean;
    update: boolean;
} = ...

Type declaration

  • ended: boolean
  • live: boolean
  • update: boolean
bearer: Bearer

Accessors

  • get announcements(): {
        add: ((user, webhooks) => Stream);
        list: ((user?) => {
            user: string;
            webhooks: string[];
        }[]);
        remove: ((user, webhooks?) => Stream);
    }
  • Returns {
        add: ((user, webhooks) => Stream);
        list: ((user?) => {
            user: string;
            webhooks: string[];
        }[]);
        remove: ((user, webhooks?) => Stream);
    }

    • add: ((user, webhooks) => Stream)
        • (user, webhooks): Stream
        • Parameters

          • user: string
          • webhooks: string[]

          Returns Stream

    • list: ((user?) => {
          user: string;
          webhooks: string[];
      }[])
        • (user?): {
              user: string;
              webhooks: string[];
          }[]
        • Parameters

          • Optional user: string

          Returns {
              user: string;
              webhooks: string[];
          }[]

    • remove: ((user, webhooks?) => Stream)
        • (user, webhooks?): Stream
        • Parameters

          • user: string
          • Optional webhooks: string[]

          Returns Stream

  • get caches(): {
        add: ((stream) => void);
        all: (() => LiveStream[]);
        delete: ((id) => boolean);
        get: ((id) => undefined | LiveStream);
        size: (() => number);
        update: ((stream) => Map<string, LiveStream>);
        user: ((user) => undefined | LiveStream);
    }
  • Returns {
        add: ((stream) => void);
        all: (() => LiveStream[]);
        delete: ((id) => boolean);
        get: ((id) => undefined | LiveStream);
        size: (() => number);
        update: ((stream) => Map<string, LiveStream>);
        user: ((user) => undefined | LiveStream);
    }

  • get toggles(): {
        ended: boolean;
        live: boolean;
        update: boolean;
    }
  • Returns {
        ended: boolean;
        live: boolean;
        update: boolean;
    }

    • ended: boolean
    • live: boolean
    • update: boolean
  • get users(): {
        add: ((users) => Stream);
        list: (() => string[]);
        remove: ((users) => Stream);
    }
  • Returns {
        add: ((users) => Stream);
        list: (() => string[]);
        remove: ((users) => Stream);
    }

Methods

  • Parameters

    • user: string

    Returns Promise<boolean>

  • Type Parameters

    • D extends object

    Parameters

    • url: string
    • method: RequestMethod = "GET"

    Returns FetchResults<D>

  • Returns Promise<null | string>

  • Parameters

    • Rest ...args: unknown[]

    Returns Stream

  • Returns Timeout

  • Returns Promise<null | string>

  • Parameters

    Returns Promise<{
        failed: string[];
        success: string[];
    }>

  • Parameters

    • listener: ((stream) => unknown)
        • (stream): unknown
        • Parameters

          Returns unknown

    Returns Stream

  • Parameters

    • stream: LiveStream
    • format: string = "w[w], d[d], h[h], m[m], s[s]"

    Returns any

  • Parameters

    • listener: ((stream) => unknown)
        • (stream): unknown
        • Parameters

          Returns unknown

    Returns Stream

  • Returns Promise<unknown>

  • Parameters

    • minutes: number

    Returns Stream

  • Parameters

    • type: "live" | "update" | "ended"

    Returns Stream

  • Parameters

    • listener: ((oldStream, newStream) => unknown)
        • (oldStream, newStream): unknown
        • Parameters

          Returns unknown

    Returns Stream

Generated using TypeDoc