31 lines
707 B
Markdown
31 lines
707 B
Markdown
|
---
|
||
|
sidebar_label: EventEmitter.removeListener
|
||
|
---
|
||
|
|
||
|
# EventEmitter.removeListener() method
|
||
|
|
||
|
> Warning: This API is now obsolete.
|
||
|
>
|
||
|
> please use [EventEmitter.off()](./puppeteer.eventemitter.off.md) instead.
|
||
|
|
||
|
Remove an event listener.
|
||
|
|
||
|
**Signature:**
|
||
|
|
||
|
```typescript
|
||
|
class EventEmitter {
|
||
|
removeListener(event: EventType, handler: Handler): EventEmitter;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --------- | ------------------------------------- | ----------- |
|
||
|
| event | [EventType](./puppeteer.eventtype.md) | |
|
||
|
| handler | [Handler](./puppeteer.handler.md) | |
|
||
|
|
||
|
**Returns:**
|
||
|
|
||
|
[EventEmitter](./puppeteer.eventemitter.md)
|