IPC communication between different apps

How about this for client to server communication?

How about this for server to client communication?

Btw, in you code, secStoreKey is a input, so the IPC client should first read the file content and pass it to IPC server by the function arraySend()

Or you can set it to output, so the IPC server can first read the file content and pass it to IPC client when client calls the the function arraySend()