Home > borogove > Client > addTlsCheckListener

Client.addTlsCheckListener() method

Event fired when TLS checks fail, to give client the chance to override

Signature:

addTlsCheckListener(handler: (arg0: string, arg1: string[]) => boolean): number;

Parameters

Parameter Type Description
handler (arg0: string, arg1: string[]) => boolean takes two arguments, the PEM of the cert and an array of DNS names, and must return true to accept or false to reject

Returns:

number

token for use with removeEventListener