blob: 577ff2927311c0a9e06c7409279fc6f690bebe5a [file] [log] [blame]
<html>
<head><title>bindings</title></head>
<body>
<script>
var testChannel = cast.__platform__.PortConnector.bind('hello');
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>