Skip to main content

on

method Server.prototype.on
Jump to headingServer.prototype.on(
event: string,
listener: (...args: any[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "tlsClientError",
listener: (
err: Error,
tlsSocket: TLSSocket,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "tlsClientError"
Jump to headinglistener: (
err: Error,
tlsSocket: TLSSocket,
) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "newSession",
listener: (
sessionId: Buffer,
sessionData: Buffer,
callback: () => void,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "newSession"
Jump to headinglistener: (
sessionId: Buffer,
sessionData: Buffer,
callback: () => void,
) => void

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: "OCSPRequest"
Jump to headinglistener: (
certificate: Buffer,
issuer: Buffer,
callback: (
err: Error | null,
resp: Buffer,
) => void
,
) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "resumeSession",
listener: (
sessionId: Buffer,
callback: (
err: Error | null,
sessionData: Buffer | null,
) => void
,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "resumeSession"
Jump to headinglistener: (
sessionId: Buffer,
callback: (
err: Error | null,
sessionData: Buffer | null,
) => void
,
) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "secureConnection",
listener: (tlsSocket: TLSSocket) => void,
): this

Parameters Jump to heading

Jump to headingevent: "secureConnection"
Jump to headinglistener: (tlsSocket: TLSSocket) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "keylog",
listener: (
line: Buffer,
tlsSocket: TLSSocket,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "keylog"
Jump to headinglistener: (
line: Buffer,
tlsSocket: TLSSocket,
) => void

Return Type Jump to heading

this
Back to top