Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/EventEmitter.d.ts";

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.