Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.Media.PlayersCreatedEvent
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { PlayersCreatedEvent } = Protocol.Media;

Called whenever a player is created, or when a new agent joins and receives a list of active players. If an agent is restored, it will receive the full list of player ids and all events again.