twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

senditpage.ejs (359B)


      1 
      2 <script src="/socket.io/socket.io.js"></script>
      3   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
      4 <h1> hello world</h1>
      5  <script>
      6 
      7        var socket = io.connect('http://localhost:3000');
      8        socket.on('stream', function(tweet){
      9        $('#tweetd').append(tweet+'<br>');
     10        });
     11  </script>
     12  <div id="tweetd"></div>