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