class YT.LiveChat
extends EventEmitter
import { YT } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { LiveChat } = YT;
Constructors
new
LiveChat(video_info: VideoInfo)Properties
optional
initial_info: LiveChatContinuationsmoothed_queue: SmoothedQueue
Methods
on(type: "start", listener: (initial_data: LiveChatContinuation) => void): void
on(type: "chat-update", listener: (action: ChatAction) => void): void
on(type: "metadata-update", listener: (metadata: LiveMetadata) => void): void
on(type: "error", listener: (err: Error) => void): void
on(type: "end", listener: () => void): void
once(type: "start", listener: (initial_data: LiveChatContinuation) => void): void
once(type: "chat-update", listener: (action: ChatAction) => void): void
once(type: "metadata-update", listener: (metadata: LiveMetadata) => void): void
once(type: "error", listener: (err: Error) => void): void
once(type: "end", listener: () => void): void
start()
stop()