Skip to main content

emit

method Server.prototype.emit
Jump to headingServer.prototype.emit(
event: string,
...args: any[],
): boolean

Parameters Jump to heading

Jump to headingevent: string
Jump to heading<span>...args</span>: any[]

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "keylog",
line: Buffer,
tlsSocket: tls.TLSSocket,
): boolean

Parameters Jump to heading

Jump to headingevent: "keylog"
Jump to headingline: Buffer
Jump to headingtlsSocket: tls.TLSSocket

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "newSession",
sessionId: Buffer,
sessionData: Buffer,
callback: (
err: Error,
resp: Buffer,
) => void
,
): boolean

Parameters Jump to heading

Jump to headingevent: "newSession"
Jump to headingsessionId: Buffer
Jump to headingsessionData: Buffer
Jump to headingcallback: (
err: Error,
resp: Buffer,
) => void

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: "OCSPRequest"
Jump to headingcertificate: Buffer
Jump to headingissuer: Buffer
Jump to headingcallback: (
err: Error | null,
resp: Buffer,
) => void

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "resumeSession",
sessionId: Buffer,
callback: (
err: Error,
sessionData: Buffer,
) => void
,
): boolean

Parameters Jump to heading

Jump to headingevent: "resumeSession"
Jump to headingsessionId: Buffer
Jump to headingcallback: (
err: Error,
sessionData: Buffer,
) => void

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "secureConnection",
tlsSocket: tls.TLSSocket,
): boolean

Parameters Jump to heading

Jump to headingevent: "secureConnection"
Jump to headingtlsSocket: tls.TLSSocket

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "tlsClientError",
err: Error,
tlsSocket: tls.TLSSocket,
): boolean

Parameters Jump to heading

Jump to headingevent: "tlsClientError"
Jump to headingtlsSocket: tls.TLSSocket

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(event: "close"): boolean

Parameters Jump to heading

Jump to headingevent: "close"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "connection",
socket: Duplex,
): boolean

Parameters Jump to heading

Jump to headingevent: "connection"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "error",
err: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "error"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(event: "listening"): boolean

Parameters Jump to heading

Jump to headingevent: "listening"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "checkContinue",
req: InstanceType<Request>,
res: InstanceType<Response>,
): boolean

Parameters Jump to heading

Jump to headingevent: "checkContinue"
Jump to headingreq: InstanceType<Request>
Jump to headingres: InstanceType<Response>

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "checkExpectation",
req: InstanceType<Request>,
res: InstanceType<Response>,
): boolean

Parameters Jump to heading

Jump to headingevent: "checkExpectation"
Jump to headingreq: InstanceType<Request>
Jump to headingres: InstanceType<Response>

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "clientError",
err: Error,
socket: Duplex,
): boolean

Parameters Jump to heading

Jump to headingevent: "clientError"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "connect",
req: InstanceType<Request>,
socket: Duplex,
head: Buffer,
): boolean

Parameters Jump to heading

Jump to headingevent: "connect"
Jump to headingreq: InstanceType<Request>
Jump to headinghead: Buffer

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "request",
req: InstanceType<Request>,
res: InstanceType<Response>,
): boolean

Parameters Jump to heading

Jump to headingevent: "request"
Jump to headingreq: InstanceType<Request>
Jump to headingres: InstanceType<Response>

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "upgrade",
req: InstanceType<Request>,
socket: Duplex,
head: Buffer,
): boolean

Parameters Jump to heading

Jump to headingevent: "upgrade"
Jump to headingreq: InstanceType<Request>
Jump to headinghead: Buffer

Return Type Jump to heading

boolean
Back to top