Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: add emitter.off to events.md
  • Loading branch information
Ajido committed Apr 25, 2018
commit a71f040a665c20cb2e9041e0717d6d5b721ea8d8
11 changes: 11 additions & 0 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,17 @@ console.log(util.inspect(server.listeners('connection')));
// Prints: [ [Function] ]
```

### emitter.off(eventName, listener)
<!-- YAML
added: v10.0.0
-->

* `eventName` {string|symbol}
* `listener` {Function}
* Returns: {EventEmitter}

Alias for `emitter.removeListener(eventName, listener)`.

### emitter.on(eventName, listener)
<!-- YAML
added: v0.1.101
Expand Down