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

Usage in Deno

import { TLSSocket } from "node:tls";
TLSSocket.prototype.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters

event: string | symbol
...args: any[]

Return Type

boolean
TLSSocket.prototype.emit(
event: "OCSPResponse",
response: Buffer,
): boolean

Parameters

event: "OCSPResponse"
response: Buffer

Return Type

boolean
TLSSocket.prototype.emit(event: "secureConnect"): boolean

Parameters

event: "secureConnect"

Return Type

boolean
TLSSocket.prototype.emit(
event: "session",
session: Buffer,
): boolean

Parameters

event: "session"
session: Buffer

Return Type

boolean
TLSSocket.prototype.emit(
event: "keylog",
line: Buffer,
): boolean

Parameters

event: "keylog"
line: Buffer

Return Type

boolean