Synchronous messages

Supports: Win, macOS, Linux | Process: Both

You can use the ipc module to send synchronous messages between processes as well, but note that the synchronous nature of this method means that it will block other operations while completing its task.

This example sends a synchronous message, "ping", from this process (renderer) to the main process. The main process then replies with "pong".