Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add pakcet, packetCreate document to README #121

Merged
merged 3 commits into from

2 participants

This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -231,6 +231,16 @@ A representation of a client. _Inherits from EventEmitter_.
- `Array`: write buffer
- `drain`
- Called when the write buffer is drained
+- `packet`
+ - Called when a socket reseived a packet (`message`, `ping`)
+ - **Arguments**
+ - `type`: packet type
+ - `data`: packet data (if type is message)
+- `packetCreate`
+ - Called before a socket sends a packet (`message`, `pong`)
+ - **Arguments**
+ - `type`: packet type
+ - `data`: packet data (if type is message)
##### Properties
Something went wrong with that request. Please try again.