enum abstract TLSSocketEvent<T>(Event<T>)
package js.node.tls
to Event<T>
import js.node.tls.TLSSocket
Enumeration of events emitted by TLSSocket objects in addition to its parent class events.
Variables
inlineread onlyOCSPResponse:TLSSocketEvent<Buffer ‑> Void> = "OCSPResponse"
This event will be emitted if requestOCSP option was set.
response is a Buffer object, containing server's OCSP response.
Traditionally, the response is a signed object from the server's CA that contains information about server's certificate revocation status.
inlineread onlySecureConnect:TLSSocketEvent<() ‑> Void> = "secureConnect"
This event is emitted after a new connection has been successfully handshaked.
The listener will be called no matter if the server's certificate was authorized or not.
It is up to the user to test TLSSocket.authorized to see if the server certificate
was signed by one of the specified CAs. If TLSSocket.authorized is false then the error
can be found in TLSSocket.authorizationError. Also if NPN was used - you can
check TLSSocket.npnProtocol for negotiated protocol.