diff --git a/doc/api/quic.md b/doc/api/quic.md index 318f48cc62094e..cb3180e0cdf66a 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1584,16 +1584,17 @@ with this `QuicSocket`. Read-only. -#### quicsocket.close(\[callback\]) +#### quicsocket.close() -* `callback` {Function} +* Returns: {Promise} Gracefully closes the `QuicSocket`. Existing `QuicSession` instances will be permitted to close naturally. New `QuicClientSession` and `QuicServerSession` -instances will not be allowed. +instances will not be allowed. The returns `Promise` will be resolved once +the `QuicSocket` is destroyed. #### quicsocket.connect(\[options\])