@miukyo/ytlc
    Preparing search index...

    Main live chat service for YouTube InnerTube chat polling.

    Supports typed events, async iterators, local dummy injection, and auto reconnect.

    Hierarchy

    Implements

    Index

    Constructors

    • Create a YTLiveChat service instance.

      No constructor options are required.

      Parameters

      Returns YTLiveChat

      const livechat = new YTLiveChat();

      livechat.on("chatReceived", ({ chatItem }) => {
      console.log(chatItem.author.name);
      });

      await livechat.start({ handle: "@YouTubeChannelHandle" });

    Methods

    • Start monitoring chat for a specific target.

      • At least one of handle, channelId, or liveId is required.

      Parameters

      Returns Promise<void>

       * const livechat = new YTLiveChat();
      * await livechat.start({ handle: "@YouTubeChannelHandle" });