Skip to main content
TLSSocket.prototype.once - tls - Node documentation
method TLSSocket.prototype.once

Usage in Deno

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

this