up
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
// Test simplísimo de SSE
|
||||
header('Content-Type: text/event-stream');
|
||||
header('Cache-Control: no-cache');
|
||||
|
||||
echo "event: test\n";
|
||||
echo "data: {\"message\":\"works\"}\n\n";
|
||||
flush();
|
||||
Reference in New Issue
Block a user