Permalink
Browse files

Merge branch 'master' of github.com:/LearnBoost/engine.io

  • Loading branch information...
2 parents 3bafecd + 472b3f1 commit 58ff8991d01eca13e4158cbbcecedfaf143b845e @rauchg rauchg committed Dec 3, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
@@ -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

0 comments on commit 58ff899

Please sign in to comment.