Skip to content

Commit

Permalink
Update comments and use relative EventSource URL
Browse files Browse the repository at this point in the history
  • Loading branch information
louisremi committed Jun 15, 2011
1 parent 28fa5ef commit 598f23f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/friends timeline/sse.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function onload() {
var timeline = document.getElementById( "timeline" ), var timeline = document.getElementById( "timeline" ),
lastMsg = document.getElementById( "lastMsg" ), lastMsg = document.getElementById( "lastMsg" ),
// Create the EventSource // Create the EventSource
evtSrc = new EventSource( "http://www.oclast.com/sse.php" ), evtSrc = new EventSource( "sse.php" ),
message = document.createElement( "div" ); message = document.createElement( "div" );
message.classList.add( "msg" ); message.classList.add( "msg" );


Expand Down
2 changes: 1 addition & 1 deletion demos/friends timeline/sse.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Send appropriate mime type // Send appropriate mime type
header("Content-Type: text/event-stream\n\n"); header("Content-Type: text/event-stream\n\n");


// Parse messages // Read sample messages
$filename = "timelineEvents.txt"; $filename = "timelineEvents.txt";
$handle = fopen($filename, "r"); $handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename)); $contents = fread($handle, filesize($filename));
Expand Down

0 comments on commit 598f23f

Please sign in to comment.