diff --git a/doc/api/http2.md b/doc/api/http2.md index 205c0dc85b8102..ab74b94528c81c 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -411,6 +411,18 @@ added: v9.4.0 Transmits a `GOAWAY` frame to the connected peer *without* shutting down the `Http2Session`. +#### http2session.getLastReceivedTime() + + +* Returns: {number} + +Returns a timestamp indicating the moment the most recently received +communication of any kind was received from the connected peer. A value of `0` +indicates that the session is still open but no data has yet been received. +A value of `undefined` indicates that the session is no longer valid. + #### http2session.localSettings