Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Jan 27, 2021
2 parents 1f616eb + 14fbe3c commit 79d7810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -11,6 +11,7 @@ Returns an object with an `alpnProtocol` property. The `socket` property may be
```js
const result = await resolveALPN({
host: 'nghttp2.org',
port: 443,
ALPNProtocols: ['h2', 'http/1.1'],
servername: 'nghttp2.org'
});
Expand All @@ -32,7 +33,9 @@ If you set this to true, it will return the socket in a `socket` property.
```js
const result = await resolveALPN({
host: 'nghttp2.org',
port: 443,
ALPNProtocols: ['h2', 'http/1.1'],
servername: 'nghttp2.org',
resolveSocket: true
});

Expand Down

0 comments on commit 79d7810

Please sign in to comment.