From 9064608513328fea588d3dc88ff2bf2e34ebaabb Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Wed, 22 Feb 2017 13:07:43 +0100 Subject: [PATCH] [docs] Add note regarding the Emitter class (#1079) --- docs/API.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/API.md b/docs/API.md index a54d81df..44dedb29 100644 --- a/docs/API.md +++ b/docs/API.md @@ -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)_