GeezerVison is showing github.com — doc: improve docs for Http2Session:frameError · nodejs/node@98ed30f
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/http2.md +5-7Lines changed: 5 additions & 7 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -159,18 +159,16 @@ an `Http2Session`. |
159 | 159 | added: v8.4.0 |
160 | 160 | --> |
161 | 161 |
|
| 162 | +* `type` {integer} The frame type. |
| 163 | +* `code` {integer} The error code. |
| 164 | +* `id` {integer} The stream id (or `0` if the frame isn't associated with a |
| 165 | + stream). |
| 166 | + |
162 | 167 | The `'frameError'` event is emitted when an error occurs while attempting to |
163 | 168 | send a frame on the session. If the frame that could not be sent is associated |
164 | 169 | with a specific `Http2Stream`, an attempt to emit `'frameError'` event on the |
165 | 170 | `Http2Stream` is made. |
166 | 171 |
|
167 | | -When invoked, the handler function will receive three arguments: |
168 | | - |
169 | | -* An integer identifying the frame type. |
170 | | -* An integer identifying the error code. |
171 | | -* An integer identifying the stream (or 0 if the frame is not associated with |
172 | | - a stream). |
173 | | - |
174 | 172 | If the `'frameError'` event is associated with a stream, the stream will be |
175 | 173 | closed and destroyed immediately following the `'frameError'` event. If the |
176 | 174 | event is not associated with a stream, the `Http2Session` will be shut down |
|