Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/EventEmitter.js";

Emit an event and call any associated listeners.

Parameters

event: EventType
  • the event you'd like to emit
optional
eventData: unknown
  • any data you'd like to emit with the event

Returns

boolean

true if there are any listeners, false if there are not.