forked from vuchkov/atomchat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
phhpro
committed
Mar 22, 2019
1 parent
93e9087
commit 3aff28f
Showing
5 changed files
with
87 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* PHP Version 5 and above | ||
* | ||
* SSE helper | ||
* | ||
* @category PHP_Chat | ||
* @package PHP_Atomchat | ||
* @author P H Claus <[email protected]> | ||
* @copyright 2015 - 2019 P H Claus | ||
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GPLv3 | ||
* @version GIT: Latest | ||
* @link https://github.com/phhpro/atomchat | ||
*/ | ||
header("Content-Type: text/event-stream"); | ||
$src = str_replace("\n", "", file_get_contents($_GET['src'])); | ||
echo "data: $src\n\n"; |