Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 02d5da6378
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (25 sloc) 0.677 kb
<!DOCTYPE html>
<html>
<head>
<style>span {font-weight: bold;}</style>
<script src="/dnode.js"></script>
<script>
window.onload = function () {
var Client = function() {
this.greet = function(greeting) {
document.getElementById('greeting').innerHTML = greeting;
};
}
DNode(Client).connect(function(cat) {
cat.howAreYou(function(catReply) {
document.getElementById('catReply').innerHTML = catReply;
});
});
};
</script>
</head>
<body>
<div>The cat says <span id="catReply">?</span></div>
<div>The server pushed <span id="greeting">?</span></div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.