<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>