Skip to content

Commit

Permalink
[docs] Add note regarding the Emitter class (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Feb 22, 2017
1 parent 49fb3e0 commit 9064608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/API.md
Expand Up @@ -272,6 +272,8 @@ socket.on('news', function (data) {
});
```

The socket actually inherits every method of the [Emitter](https://github.com/component/emitter) class, like `hasListeners`, `once` or `off` (to remove an event listener).

#### socket.compress(value)

- `value` _(Boolean)_
Expand Down

0 comments on commit 9064608

Please sign in to comment.