Skip to content

examples: add prewarm and SSE examples#246

Merged
WineChord merged 1 commit into
trpc-group:mainfrom
Rememorio:finish_stage4_minimal
Jun 24, 2026
Merged

examples: add prewarm and SSE examples#246
WineChord merged 1 commit into
trpc-group:mainfrom
Rememorio:finish_stage4_minimal

Conversation

@Rememorio

Copy link
Copy Markdown
Collaborator

Summary

  • Add a prewarm example that uses client.InitializableClient, client.WithPreWarm, and the existing generated helloworld proxy.
  • Add a minimal SSE example using the public HTTP client SSEHandler and http.WriteSSE APIs.
  • Document precool readiness checks in the server user guide without adding new framework APIs.

Compatibility

  • Uses only existing public APIs.
  • Does not add framework behavior, new generated stub requirements, or transport plugin dependencies.
  • Keeps internal metrics and connection counters out of the examples.

Tests

  • go test ./features/prewarm/... ./features/sse/... -count=1 from examples/
  • go test ./features/precool/... -count=1 from examples/
  • go test ./... -count=1 from examples/
  • go test ./... -count=1
  • Ran the prewarm example server/client locally
  • Ran the SSE example server/client locally
  • git diff --cached --check
  • Scanned changed files for internal-only links and local paths

@WineChord WineChord left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@WineChord WineChord merged commit 3e4cacb into trpc-group:main Jun 24, 2026
6 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants