small NPN doc fix

Fixes #1522.
pull/22966/head
Fedor Indutny 2011-08-14 00:45:38 +07:00 committed by koichik
parent a38bda9fb2
commit c0d8311f6b
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ defaults to `localhost`.) `options` should be an object which specifies
These are used to authorize connections. These are used to authorize connections.
- `NPNProtocols`: An array of string or `Buffer` containing supported NPN - `NPNProtocols`: An array of string or `Buffer` containing supported NPN
protocols. `Buffer` should have following format: `0x04hello0x5world`, where protocols. `Buffer` should have following format: `0x05hello0x05world`, where
first byte is next protocol name's length. (Passing array should usually be first byte is next protocol name's length. (Passing array should usually be
much simplier: `['hello', 'world']`.) much simplier: `['hello', 'world']`.)