Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Documented `headers` event.

  • Loading branch information...
commit 3ecdb99677f0130dfd0337cbd9576c868d1267e2 1 parent 2463f85
@rauchg rauchg authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 doc/ws.md
View
6 doc/ws.md
@@ -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) { }`
Please sign in to comment.
Something went wrong with that request. Please try again.