Skip to content

TlsSocketEvents

TlsSocketEvents = InetSocketEvents & object

Defined in: packages/node/src/net/tls-socket.ts:12

Event map for TlsSocket.

keylog: [Buffer]

Emitted with each line of TLS key material, for traffic decryption.

ocspResponse: [Buffer | null]

Emitted with the stapled OCSP response, or null when the server sent none. Only emitted when requestOCSP was set.

secure: []

Emitted once the handshake completed, including after a renegotiation.

Unlike TlsSocketEvents.secureConnect this also fires on sockets accepted by a server.

secureConnect: []

Emitted once the handshake completed and the connection is usable.

session: [Buffer]

Emitted with a session ticket that can be reused to resume the session.