The postMessage API is only available on iframes created via write-srcdoc
.
It will not work on iframes created via write-src
.
Each message should be of the following form:
{
...command_arguments,
command: 'some-command',
}
This command will write charactters in the visible ASCII range to stdin,
wrapped between \x1B]21337;
and \x1B\\
.