Permalink
Browse files

Documented `headers` event.

  • Loading branch information...
1 parent 2463f85 commit 3ecdb99677f0130dfd0337cbd9576c868d1267e2 @rauchg rauchg committed Jul 3, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 doc/ws.md
View
@@ -37,6 +37,12 @@ When the Upgrade was successfully, the `callback` will be called with a `ws.WebS
If the underlying server emits an error, it will be forwarded here.
+### Event: 'headers'
+
+`function (headers) { }`
+
+Emitted with the object of HTTP headers that are going to be written to the `Stream` as part of the handshake.
+
### Event: 'connection'
`function (socket) { }`

0 comments on commit 3ecdb99

Please sign in to comment.