Skip to content
Browse files

Update comments and use relative EventSource URL

  • Loading branch information...
1 parent 28fa5ef commit 598f23fee80c7276761fe0baa3aebbe09c5ca0f6 louisremi committed Jun 15, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 demos/friends timeline/sse.js
  2. +1 −1 demos/friends timeline/sse.php
View
2 demos/friends timeline/sse.js
@@ -2,7 +2,7 @@ function onload() {
var timeline = document.getElementById( "timeline" ),
lastMsg = document.getElementById( "lastMsg" ),
// Create the EventSource
- evtSrc = new EventSource( "http://www.oclast.com/sse.php" ),
+ evtSrc = new EventSource( "sse.php" ),
message = document.createElement( "div" );
message.classList.add( "msg" );
View
2 demos/friends timeline/sse.php
@@ -3,7 +3,7 @@
// Send appropriate mime type
header("Content-Type: text/event-stream\n\n");
-// Parse messages
+// Read sample messages
$filename = "timelineEvents.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));

0 comments on commit 598f23f

Please sign in to comment.
Something went wrong with that request. Please try again.