diff --git a/doc/api/quic.md b/doc/api/quic.md index ad400bf225b974..abd07d2df7e72e 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -400,6 +400,21 @@ with either a `QuicEndpoint` or `EndpointOptions` as the argument. At most, any single `QuicEndpoint` can only be configured to listen as a server once. +## `quic.listEndpoints([options])` + + + +* `options` {object} + * `active` {boolean} If `true` (the default), only returns endpoints that are + active (not destroyed, not closing, and not busy). If `false` returns all + endpoints. +* Returns: {quic.QuicEndpoint\[]} + +Returns the list of all `QuicEndpoint` instances. By default, only active +endpoints are returned. + ## `quic.constants`