Skip to content

Commit 650eda3

Browse files
Update sse.php
usleep
1 parent d743a9d commit 650eda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/sse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
return json_encode(compact('news'));
2121
// return ['id' => uniqid(), 'data' => json_encode(compact('news'))]; // Custom event Id
2222
};
23-
(new SSE(new Event($callback, 'news')))->start(3);
23+
(new SSE(new Event($callback, 'news')))->start(3000);

0 commit comments

Comments
 (0)