method Server.prototype.on
Overload 1
#Server.prototype.on(event: string,listener: (...args: any[]) => void,): this
Overload 2
#Server.prototype.on(event: "keylog",listener: (line: Buffer,tlsSocket: tls.TLSSocket,) => void,): this
Overload 3
#Server.prototype.on(event: "newSession",listener: (sessionId: Buffer,sessionData: Buffer,callback: (err: Error,resp: Buffer,) => void,) => void,): this
Overload 4
#Server.prototype.on(event: "OCSPRequest",listener: (certificate: Buffer,issuer: Buffer,callback: (err: Error | null,resp: Buffer,) => void,) => void,): this
Overload 5
#Server.prototype.on(event: "resumeSession",listener: (sessionId: Buffer,callback: (err: Error,sessionData: Buffer,) => void,) => void,): this
Overload 6
#Server.prototype.on(event: "secureConnection",listener: (tlsSocket: tls.TLSSocket) => void,): this
Overload 7
#Server.prototype.on(event: "tlsClientError",listener: (err: Error,tlsSocket: tls.TLSSocket,) => void,): this
Overload 8
#Server.prototype.on(event: "close",listener: () => void,): this
Overload 9
Overload 10
#Server.prototype.on(event: "error",listener: (err: Error) => void,): this
Overload 11
#Server.prototype.on(event: "listening",listener: () => void,): this
Overload 12
#Server.prototype.on(event: "checkContinue",listener: http.RequestListener<Request, Response>,): this
Overload 13
#Server.prototype.on(event: "checkExpectation",listener: http.RequestListener<Request, Response>,): this
Overload 14
Overload 15
#Server.prototype.on(event: "connect",listener: () => void,): this
Overload 16
#Server.prototype.on(event: "request",listener: http.RequestListener<Request, Response>,): this