chromium/fuchsia_web/runners/cast/testdata/connector.html

<html>
  <head><title>bindings</title></head>
  <body>
    <script>
      var testChannel = cast.__platform__.PortConnector.bind('echo');
      testChannel.onmessage = function(msg) {
        testChannel.postMessage('ack ' + msg.data);
        return true;
      };

      // Send some messages before the channel can be established.
      testChannel.postMessage('early 1');
      testChannel.postMessage('early 2');
    </script>
  </body>
</html>