Latest
method EventEmitter.prototype.once
import { EventEmitter } from "https://dotland.deno.dev/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Like on but the listener will only be fired once and then it will be removed.

Parameters

event: EventType
  • the event you'd like to listen to
handler: Handler
  • the handler function to run when the event occurs

Returns

EventEmitter

this to enable you to chain method calls.