Skip to content

Add HttpResponse SSE API stubs (sseStart/sseEvent/sseComment/sseRetry)#2

Merged
EdmondDantes merged 1 commit into
mainfrom
sse-stubs
Jun 26, 2026
Merged

Add HttpResponse SSE API stubs (sseStart/sseEvent/sseComment/sseRetry)#2
EdmondDantes merged 1 commit into
mainfrom
sse-stubs

Conversation

@EdmondDantes

Copy link
Copy Markdown
Contributor

Mirrors the new Server-Sent Events API added to the server extension
(true-async/server#91) into the IDE-helper stub so editors get completion

  • signatures for the four HttpResponse SSE methods:
  • sseStart(): static
  • sseEvent(?string $data, ?string $event, ?string $id, ?int $retry): static
  • sseComment(string $text = ""): static
  • sseRetry(int $milliseconds): static

Signatures + PHPDoc match stubs/HttpResponse.php in the server repo.

@EdmondDantes EdmondDantes merged commit 881ad03 into main Jun 26, 2026
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