You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
PHP SSE: Server-sent Events
2
2
======
3
3
4
-
A simple and efficient library implemented HTML5's server-sent events by PHP, is used to real-time push events from server to client, and easier than Websocket, instead of AJAX request.
4
+
A simple and efficient library implemented HTML5's server-sent events by PHP, is used to real-time push events from server to client, and easier than
Copy file name to clipboardExpand all lines: src/Event.php
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,11 @@ class Event
14
14
*/
15
15
protected$event;
16
16
17
+
/**
18
+
* @var string The initial $event
19
+
*/
20
+
protected$initialEvent;
21
+
17
22
/**
18
23
* @var string The data field for the message. When the EventSource receives multiple consecutive lines that begin with data:, it will concatenate them, inserting a newline character between each one. Trailing newlines are removed.
0 commit comments