addTlsCheckListener(handler:)

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

func addTlsCheckListener(handler: @escaping @Sendable (String, Array<String>) -> Bool) -> Int32

Parameters

handler

takes two arguments, the PEM of the cert and an array of DNS names, and must return true to accept or false to reject

Return Value

token for use with removeEventListener