We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6d75c commit 588c0edCopy full SHA for 588c0ed
src/services/SseService.php
@@ -291,10 +291,9 @@ public function throwException(Throwable $exception): void
291
throw $exception;
292
}
293
294
- $this->setSseMethodInProcess(null);
295
- $this->executeScript('console.error(' . json_encode($exception->getMessage()) . ');');
296
- flush();
297
- exit();
+ $this->getEventStream(function() use ($exception) {
+ $this->executeScript('console.error(' . json_encode($exception->getMessage()) . ');');
+ })->send();
298
299
300
/**
0 commit comments