Bill Purvis:
poll the connections at frequent intervals. Is there any way I can get a
callback when either of the clients drops out?
The function jack_set_graph_order_callback does this. The callback is
called whenever the graph of connections is changed. Then you can use
other jack functions to find out if your client has dropped out. I
don't know if writing a c program is an option for you, but there are
probably higher-level languages that have support for jack.
https://jackaudio.org/api/group__ClientCallbacks.html#gacd0804ccef7c6891d82…
(Sorry if someone else has already replied this solution (I'm
subscribing to the mailing list in digest mode), but I could not find
any web archive of the linux audio mailing list working! Is there any
left?)