@@ -94,7 +94,7 @@ At any given time, a `QuicSession` exists is one of four possible states:
94
94
* ` Ready ` - Entered as soon as the TLS 1.3 handshake completes. Once the
95
95
` QuicSession ` enters the ` Ready ` state, it may be used to exchange
96
96
application data using ` QuicStream ` instances.
97
- * ` Closed ` - Entere as soon as the ` QuicSession ` connection has been
97
+ * ` Closed ` - Entered as soon as the ` QuicSession ` connection has been
98
98
terminated.
99
99
100
100
New instances of ` QuicClientSession ` are created using the ` connect() `
@@ -152,7 +152,7 @@ socket.on('session', (session) => {
152
152
```
153
153
154
154
As with client ` QuicSession ` instances, the ` QuicServerSession ` cannot be
155
- used to exhange application data until the ` 'secure' ` event has been emitted.
155
+ used to exchange application data until the ` 'secure' ` event has been emitted.
156
156
157
157
### QuicSession and ALPN
158
158
@@ -197,7 +197,7 @@ peer opened the stream. A unidirectional stream can be written to only by the
197
197
QuicSession that opened it.
198
198
199
199
The ` 'stream' ` event is emitted by the ` QuicSession ` when a new ` QuicStream `
200
- has been initated by the connected peer:
200
+ has been initiated by the connected peer:
201
201
202
202
``` js
203
203
session .on (' stream' , (stream ) => {
@@ -403,7 +403,7 @@ added: REPLACEME
403
403
404
404
* ` error ` {Object} An ` Error ` object.
405
405
406
- Closes and destroys the ` QuicEndpoint ` instance making it usuable .
406
+ Closes and destroys the ` QuicEndpoint ` instance making it unusable .
407
407
408
408
#### ` quicendpoint.destroyed `
409
409
<!-- YAML
@@ -712,7 +712,7 @@ added: REPLACEME
712
712
713
713
* Type: {number}
714
714
715
- The number of retransmissions caused by delayed acknowledgements .
715
+ The number of retransmissions caused by delayed acknowledgments .
716
716
717
717
#### ` quicsession.address `
718
718
<!-- YAML
@@ -962,7 +962,7 @@ added: REPLACEME
962
962
963
963
* Type: {number}
964
964
965
- The number of key update operations that have occured .
965
+ The number of key update operations that have occurred .
966
966
967
967
#### ` quicsession.latestRTT `
968
968
<!-- YAML
@@ -1078,7 +1078,7 @@ added: REPLACEME
1078
1078
If ` qlog ` support is enabled for ` QuicSession ` , the ` quicsession.qlog ` property
1079
1079
provides a [ ` stream.Readable ` ] [ ] that may be used to access the ` qlog ` event
1080
1080
data according to the [ qlog standard] [ ] . For client ` QuicSessions ` , the
1081
- ` quicsession.qlog ` property will be ` undefined ` untilt the ` 'qlog' ` event
1081
+ ` quicsession.qlog ` property will be ` undefined ` until the ` 'qlog' ` event
1082
1082
is emitted.
1083
1083
1084
1084
#### ` quicsession.remoteAddress `
@@ -1441,7 +1441,7 @@ added: REPLACEME
1441
1441
* Returns: {QuicEndpoint}
1442
1442
1443
1443
Creates and adds a new ` QuicEndpoint ` to the ` QuicSocket ` instance. An
1444
- error will be thrown if ` quicsock .addEndpoint()` is called either after
1444
+ error will be thrown if ` quicsocket .addEndpoint()` is called either after
1445
1445
the ` QuicSocket ` has already started binding to the local ports, or after
1446
1446
the ` QuicSocket ` has been destroyed.
1447
1447
@@ -1474,7 +1474,7 @@ Will be `true` if the `QuicSocket` has been successfully bound to a local UDP
1474
1474
port. Initially the value is ` false ` .
1475
1475
1476
1476
` QuicSocket ` instances are not bound to a local UDP port until the first time
1477
- eithe ` quicsocket.listen() ` or ` quicsocket.connect() ` is called. The ` 'ready' `
1477
+ either ` quicsocket.listen() ` or ` quicsocket.connect() ` is called. The ` 'ready' `
1478
1478
event will be emitted once the ` QuicSocket ` has been bound and the value of
1479
1479
` quicsocket.bound ` will become ` true ` .
1480
1480
@@ -2146,7 +2146,7 @@ Read-only.
2146
2146
added: REPLACEME
2147
2147
-->
2148
2148
2149
- * Returns: {Promise` }
2149
+ * Returns: {Promise}
2150
2150
2151
2151
Closes the ` QuicStream ` by ending both sides of the ` QuicStream ` ` Duplex ` .
2152
2152
Returns a ` Promise ` that is resolved once the ` QuicStream ` has been destroyed.
@@ -2299,7 +2299,7 @@ added: REPLACEME
2299
2299
* ` length ` {number} The amount of data from the fd to send.
2300
2300
Default: ` -1 ` .
2301
2301
2302
- Instead of using a ` Quicstream ` as a writable stream, send data from a given
2302
+ Instead of using a ` QuicStream ` as a writable stream, send data from a given
2303
2303
file descriptor.
2304
2304
2305
2305
If ` offset ` is set to a non-negative number, reading starts from that position
@@ -2366,7 +2366,7 @@ added: REPLACEME
2366
2366
2367
2367
* Type: {boolean}
2368
2368
2369
- Will be ` true ` if the ` QuicStream ` is undirectional . Whether the ` QuicStream `
2369
+ Will be ` true ` if the ` QuicStream ` is unidirectional . Whether the ` QuicStream `
2370
2370
will be readable or writable depends on whether the ` quicstream.session ` is
2371
2371
a ` QuicClientSession ` or ` QuicServerSession ` , and whether the ` QuicStream `
2372
2372
was initiated locally or remotely.
0 commit comments