Skip to content

Conversation

withinboredom
Copy link
Member

Add native SSE support.

Usage:

class ApiRoute {
  #[SseRoute(Method::GET, '/api/events')]
  public function setupEvents(): Generator {
     yield myMessage();
  }
}

@withinboredom withinboredom self-assigned this Mar 19, 2023
@codecov
Copy link

codecov bot commented Mar 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: -1.37 ⚠️

Comparison is base (7516b8f) 29.83% compared to head (79f53b1) 28.47%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #41      +/-   ##
============================================
- Coverage     29.83%   28.47%   -1.37%     
- Complexity      435      456      +21     
============================================
  Files            54       58       +4     
  Lines          1297     1359      +62     
============================================
  Hits            387      387              
- Misses          910      972      +62     
Impacted Files Coverage Δ
src/Hooks/Api/Invoker.php 0.00% <0.00%> (ø)
src/Hooks/Api/SSE/Preprocessor.php 0.00% <0.00%> (ø)
src/Hooks/Api/SSE/Processor.php 0.00% <0.00%> (ø)
src/LifecyleHooks.php 0.00% <0.00%> (ø)
src/Router/Attributes/SseRoute.php 0.00% <0.00%> (ø)
src/Router/MagicRouter.php 0.00% <0.00%> (ø)
src/Router/SseMessage.php 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant