Enumeration of events emitted by TLSSocket objects in addition to its parent class events.

Variables

@:value(cast "OCSPResponse")@:enum@:implinlineread 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.

@:value(cast "secureConnect")@:enum@:implinlineread 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.