Index of every page on this site: llms.txt
All skills
jasnell avatar

/node-networking

@5f83e6c
Run it yourself

Networking APIs and behavior changes since Node.js 24 in net, dgram, tls, http and http2. Use to reserve a port before listening, block private IPs (SSRF), cancel work when a client disconnects, send 103 Early Hints, honor HTTP_PROXY/HTTPS_PROXY, validate header values, use promise-based net, or debug keepAliveTimeout (now 65s), upgrade-request bodies or dns.reverse. Covers node:net/promises, net.BoundSocket, BlockList PRIVATE_RANGES, setKeepAlive({ interval, count }), dgram bindSync, TLS certificateCompression, http.isValidHeaderValue, websocketMask, req.signal, NODE_USE_ENV_PROXY and HTTP/2 http1Options. Node.js 24+, some 26/27+.

Use this Skill: https://skilld.dev/gh/jasnell/node-skills/node-networking

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

rulestls.md

≈450 tokens on demand. Your agent reads this file only when SKILL.md points to it.

TLS additions

Source: doc/api/tls.md at nodejs/node ab476eccd03. Examples: tls-cert-compression.mjs, tls-socket-socket.mjs (they share the test-only fixture-cert.cjs).

Certificate compression, RFC 8879 (v26.4.0, v24.19.0)

  • tls.getCertificateCompressionAlgorithms() returns the names this OpenSSL build supports, for example ['zlib', 'brotli', 'zstd'] on all tested binaries. It returns [] when unsupported.
  • certificateCompression: ['zstd', 'zlib'] is an option of tls.createSecureContext(), which means it is also accepted by tls.createServer(), tls.connect(), and https. The list is in preference order. Default [] (off).
  • Both peers must enable it. Server-only or client-only settings change nothing (measured: a 6-cert chain handshake dropped from about 4600 to about 2470 server bytes only when both sides used zlib). It applies to TLS 1.3 only.
  • An unknown name throws ERR_INVALID_ARG_VALUE.

tlsSocket.socket (v27.0.0; docs say v27.0.0-alpha.0.0.0)

  • Server side: the raw connection from the server's 'connection' event.
  • Client created with tls.connect({ socket }): that socket.
  • Client created with tls.connect({ port | path }): null. Read remoteAddress and similar from the TLSSocket.
  • It remains set after destroy, which is useful in server.on('tlsClientError', (err, tlsSocket) => ...) to identify the raw connection.
  • On v26.13/v24.19 the property is undefined.

Other TLS changes in range (not exercised)

  • tlsSocket.authorized (v26.8.0, v24.22.0): a TLS 1.3 resumed session in which the client presented no certificate is no longer reported as authorized.
  • v27: the clientCertEngine, privateKeyEngine, and privateKeyIdentifier options throw ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    This skill provides technical documentation and code examples for Node.js networking APIs introduced in version 24 and later. It covers features such as port reservation, IP blocklists for SSRF protection, and HTTP/2 options. All provided examples are designed for local development and testing using loopback addresses, and no malicious patterns or data exfiltration behaviors were detected.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

Signed by skilld at 5f83e6c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated last week

README badge

README badge for jasnell/node-skills/node-networking