Skip to main content
TLSSocket.prototype.once - node__tls.d.ts - Node documentation
method TLSSocket.prototype.once

Usage in Deno

```typescript import { TLSSocket } from "node:node__tls.d.ts"; ```
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