puppeteer/website/versioned_docs/version-19.4.0/api/puppeteer.commoneventemitter.once.md

25 lines
575 B
Markdown
Raw Normal View History

---
sidebar_label: CommonEventEmitter.once
---
# CommonEventEmitter.once() method
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
interface CommonEventEmitter {
once(event: EventType, handler: Handler): CommonEventEmitter;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ------------------------------------- | ----------- |
| event | [EventType](./puppeteer.eventtype.md) | |
| handler | [Handler](./puppeteer.handler.md) | |
**Returns:**
[CommonEventEmitter](./puppeteer.commoneventemitter.md)