How to check my client is still alive in ES?

I have an app using Endpoint Security Framework, anything works fine but sometime ES client was exited and don't send any events. I cannot find solution to ping or health check my client to know they still alive or died!

Your app can talk to your ES client sysex using XPC. See the EndpointSecurity man page (in section 7) for the details. If your app opens an XPC connection to the ES client sysex and sends at least one request over that connection, the connection will fail with the interrupted status if your ES client terminates.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I will try it, thanks!

How to check my client is still alive in ES?
 
 
Q