[docs] Add note regarding the Emitter class (#1079)

This commit is contained in:
Damien Arrachequesne
2017-02-22 13:07:43 +01:00
committed by GitHub
parent 49fb3e035b
commit 9064608513

View File

@@ -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)_