TLSSocket.prototype.on - Node documentation
method TLSSocket.prototype.on

Usage in Deno

import { TLSSocket } from "node:tls";
TLSSocket.prototype.on(
event: string,
listener: (...args: any[]) => void,
): this

Parameters

event: string
listener: (...args: any[]) => void

Return Type

this
TLSSocket.prototype.on(
event: "OCSPResponse",
listener: (response: Buffer) => void,
): this

Parameters

event: "OCSPResponse"
listener: (response: Buffer) => void

Return Type

this
TLSSocket.prototype.on(
event: "secureConnect",
listener: () => void,
): this

Parameters

event: "secureConnect"
listener: () => void

Return Type

this
TLSSocket.prototype.on(
event: "session",
listener: (session: Buffer) => void,
): this

Parameters

event: "session"
listener: (session: Buffer) => void

Return Type

this
TLSSocket.prototype.on(
event: "keylog",
listener: (line: Buffer) => void,
): this

Parameters

event: "keylog"
listener: (line: Buffer) => void

Return Type

this