Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (16 sloc) 0.468 kb
15ab0c7 @nodecasts First commit
authored
1 <html>
2 <body>
3 <h1>NodeCasts.org - Realtime pubsub with Faye</h1>
4 <div id="messages"></div>
5
6 <script src="/jquery-1.3.2.min.js"></script>
7 <script src="/faye.js"></script>
8
9 <script type="text/javascript">
10 var client = new Faye.Client('/faye', {
11 timeout: 120
12 });
13
14 client.subscribe('/channel', function(message) {
15 $("#messages").append("<p>" + message.text + "</p>");
16 });
17 </script>
18 </body>
19 </html>
Something went wrong with that request. Please try again.