Update API.md (#883)

This commit is contained in:
circuit10 2021-08-01 18:40:42 +01:00 committed by GitHub
parent 0d426ef83a
commit 3c63cd17ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,8 +165,7 @@ The latency of the client, in ms. Updated at each keep alive.
### `packet` event
Called with every packet parsed. Takes three params, the JSON data we parsed,
, the packet metadata (name, state) and the initial buffer
Called with every packet parsed. Takes four paramaters, the JSON data we parsed, the packet metadata (name, state), the buffer (raw data) and the full buffer (includes surplus data and may include the data of following packets on versions below 1.8)
### `raw` event