mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
[docs] Add note regarding the Emitter class (#1079)
This commit is contained in:
committed by
GitHub
parent
49fb3e035b
commit
9064608513
@@ -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)_
|
||||
|
||||
Reference in New Issue
Block a user