Hey,
Why do post the message on the onReady event? Have you tried the following?
$w("#html1").onMessage((event) => {
$w("#html1").postMessage([CTypesCount.length].concat(CTypesCount).concat(CTypes).join())
});
If you don’t see the event message, it means that the event is not fired.
Best,
Tal.