From b9dc43c3e17524ed51646ead20cb27cbf5639ce1 Mon Sep 17 00:00:00 2001 From: Kamil93 Date: Sun, 29 Aug 2021 08:25:06 +0200 Subject: [PATCH] docs: add documentation about `heartbeat` event (#623) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c55a5745..0f5a9da4 100644 --- a/README.md +++ b/README.md @@ -355,6 +355,8 @@ A representation of a client. _Inherits from EventEmitter_. - **Arguments** - `type`: packet type - `data`: packet data (if type is message) +- `heartbeat` + - Called when `ping` or `pong` packed is received (depends of client version) ##### Properties