Skip to content

Commit

Permalink
quic: add natRebinding argument to docs
Browse files Browse the repository at this point in the history
PR-URL: #34669
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
jasnell committed Aug 17, 2020
1 parent 442968c commit c17eaa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/api/quic.md
Original file line number Diff line number Diff line change
Expand Up @@ -1246,12 +1246,16 @@ empty object when the key exchange is not ephemeral. The supported types are

For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`.

#### `quicclientsession.setSocket(socket])`
#### `quicclientsession.setSocket(socket[, natRebinding])`
<!-- YAML
added: REPLACEME
-->

* `socket` {QuicSocket} A `QuicSocket` instance to move this session to.
* `natRebinding` {boolean} When `true`, indicates that the local address is to
be changed without triggering address validation. This will be rare and will
typically be used only to test resiliency in NAT rebind scenarios.
**Default**: `false`.
* Returns: {Promise}

Migrates the `QuicClientSession` to the given `QuicSocket` instance. If the new
Expand Down

0 comments on commit c17eaa3

Please sign in to comment.