Skip to content

Commit 76cf7e0

Browse files
committed
Revert setting shouldCloseSession to false
1 parent 4bd25e0 commit 76cf7e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/SseService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class SseService extends Component
3535
* Whether the session should be closed when the event stream begins.
3636
* This is useful to allow other requests to be processed while the event stream is being sent.
3737
*/
38-
private bool $shouldCloseSession = false;
38+
private bool $shouldCloseSession = true;
3939

4040
/**
4141
* Server sent events to send.
@@ -275,7 +275,7 @@ public function setSseMethodInProcess(?string $method): static
275275
/**
276276
* Determines whether the session should be closed when the event stream begins.
277277
*/
278-
public function shouldCloseSession(bool $value = true): static
278+
public function shouldCloseSession(bool $value): static
279279
{
280280
$this->shouldCloseSession = $value;
281281

0 commit comments

Comments
 (0)