Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 468 Bytes
<html>
<body>
<h1>NodeCasts.org - Realtime pubsub with Faye</h1>
<div id="messages"></div>
<script src="/jquery-1.3.2.min.js"></script>
<script src="/faye.js"></script>
<script type="text/javascript">
var client = new Faye.Client('/faye', {
timeout: 120
});
client.subscribe('/channel', function(message) {
$("#messages").append("<p>" + message.text + "</p>");
});
</script>
</body>
</html>