GeezerVison is showing github.com — doc: add parameters for settings events · nodejs/node@41e8931
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 +6-4Lines changed: 6 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -195,9 +195,10 @@ event is emitted. |
195 | 195 | added: v8.4.0 |
196 | 196 | --> |
197 | 197 |
|
| 198 | +* `settings` {HTTP/2 Settings Object} A copy of the `SETTINGS` frame received. |
| 199 | + |
198 | 200 | The `'localSettings'` event is emitted when an acknowledgment `SETTINGS` frame |
199 | | -has been received. When invoked, the handler function will receive a copy of |
200 | | -the local settings. |
| 201 | +has been received. |
201 | 202 |
|
202 | 203 | *Note*: When using `http2session.settings()` to submit new settings, the |
203 | 204 | modified settings do not take effect until the `'localSettings'` event is |
@@ -216,9 +217,10 @@ session.on('localSettings', (settings) => { |
216 | 217 | added: v8.4.0 |
217 | 218 | --> |
218 | 219 |
|
| 220 | +* `settings` {HTTP/2 Settings Object} A copy of the `SETTINGS` frame received. |
| 221 | + |
219 | 222 | The `'remoteSettings'` event is emitted when a new `SETTINGS` frame is received |
220 | | -from the connected peer. When invoked, the handler function will receive a copy |
221 | | -of the remote settings. |
| 223 | +from the connected peer. |
222 | 224 |
|
223 | 225 | ```js |
224 | 226 | session.on('remoteSettings', (settings) => { |
|