Skip to content

Commit 952b293

Browse files
committed
quic: start adding in the internal quic js api
While the external API for QUIC is expected to be the WebTransport API primarily, this provides the internal API for QUIC that aligns with the native C++ QUIC components.
1 parent c86ecfa commit 952b293

11 files changed

+3113
-349
lines changed

doc/api/errors.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3577,6 +3577,42 @@ removed: v10.0.0
35773577

35783578
The `node:repl` module was unable to parse data from the REPL history file.
35793579

3580+
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
3581+
3582+
### `ERR_QUIC_CONNECTION_FAILED`
3583+
3584+
<!-- YAML
3585+
added: REPLACEME
3586+
-->
3587+
3588+
> Stability: 1 - Experimental
3589+
3590+
Establishing a QUIC connection failed.
3591+
3592+
<a id="ERR_QUIC_ENDPOINT_CLOSED"></a>
3593+
3594+
### `ERR_QUIC_ENDPOINT_CLOSED`
3595+
3596+
<!-- YAML
3597+
added: REPLACEME
3598+
-->
3599+
3600+
> Stability: 1 - Experimental
3601+
3602+
A QUIC Endpoint closed with an error.
3603+
3604+
<a id="ERR_QUIC_OPEN_STREAM_FAILED"></a>
3605+
3606+
### `ERR_QUIC_OPEN_STREAM_FAILED`
3607+
3608+
<!-- YAML
3609+
added: REPLACEME
3610+
-->
3611+
3612+
> Stability: 1 - Experimental
3613+
3614+
Opening a QUIC stream failed.
3615+
35803616
<a id="ERR_SOCKET_CANNOT_SEND"></a>
35813617

35823618
### `ERR_SOCKET_CANNOT_SEND`

lib/internal/errors.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,9 @@ E('ERR_PARSE_ARGS_UNKNOWN_OPTION', (option, allowPositionals) => {
16451645
E('ERR_PERFORMANCE_INVALID_TIMESTAMP',
16461646
'%d is not a valid timestamp', TypeError);
16471647
E('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS', '%s', TypeError);
1648+
E('ERR_QUIC_CONNECTION_FAILED', 'QUIC connection failed', Error);
1649+
E('ERR_QUIC_ENDPOINT_CLOSED', 'QUIC endpoint closed: %s (%d)', Error);
1650+
E('ERR_QUIC_OPEN_STREAM_FAILED', 'Failed to open QUIC stream', Error);
16481651
E('ERR_REQUIRE_CYCLE_MODULE', '%s', Error);
16491652
E('ERR_REQUIRE_ESM',
16501653
function(filename, hasEsmSyntax, parentPath = null, packageJsonPath = null) {

0 commit comments

Comments
 (0)