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

Usage in Deno

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

Parameters

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

Return Type

boolean
Server.prototype.emit(
event: "tlsClientError",
err: Error,
tlsSocket: TLSSocket,
): boolean

Parameters

event: "tlsClientError"
err: Error
tlsSocket: TLSSocket

Return Type

boolean
Server.prototype.emit(
event: "newSession",
sessionId: Buffer,
sessionData: Buffer,
callback: () => void,
): boolean

Parameters

event: "newSession"
sessionId: Buffer
sessionData: Buffer
callback: () => void

Return Type

boolean
Server.prototype.emit(
event: "OCSPRequest",
certificate: Buffer,
issuer: Buffer,
callback: (
err: Error | null,
resp: Buffer,
) => void
,
): boolean

Parameters

event: "OCSPRequest"
certificate: Buffer
issuer: Buffer
callback: (
err: Error | null,
resp: Buffer,
) => void

Return Type

boolean
Server.prototype.emit(
event: "resumeSession",
sessionId: Buffer,
callback: (
err: Error | null,
sessionData: Buffer | null,
) => void
,
): boolean

Parameters

event: "resumeSession"
sessionId: Buffer
callback: (
err: Error | null,
sessionData: Buffer | null,
) => void

Return Type

boolean
Server.prototype.emit(
event: "secureConnection",
tlsSocket: TLSSocket,
): boolean

Parameters

event: "secureConnection"
tlsSocket: TLSSocket

Return Type

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

Parameters

event: "keylog"
line: Buffer
tlsSocket: TLSSocket

Return Type

boolean
Back to top