postMessage

fun postMessage(message: Any?, transfer: ERROR CLASS: Symbol not found for js.array.ReadonlyArray<electron/core/MessagePortMain> = definedExternally)(source)

Send a message to the child process, optionally transferring ownership of zero or more MessagePortMain objects.

For example: