sendProviderMessage(_:responseHandler:)
Send a message to the Tunnel Provider extension. If the extension is not running, it should be launched to handle the message. If this method can’t start sending the message it reports an error in the returnError parameter. If an error occurs while sending the message or returning the result, nil should be sent to the response handler as notification.
Declaration
func sendProviderMessage(_ messageData: Data, responseHandler: ((Data?) -> Void)? = nil) throwsParameters
- messageData:
An Nsdata object containing the message to be sent.
- responseHandler:
An optional block that handles the response from the Tunnel Provider extension. Pass nil if no response is expected.