Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

Summary

Updates documentation for process.waitForPort() to reflect that it now uses Server-Sent Events (SSE) streaming internally instead of HTTP polling.

Changes

  • Updated waitForPort() description to mention SSE streaming
  • Clarified that the interval parameter is now server-side polling interval (default: 500ms) rather than client-side check interval

Benefits of the implementation change

  • Single connection instead of repeated HTTP requests
  • Reduced container log noise
  • Avoids subrequest limits in Workers/Durable Objects
  • Better performance

Related PR

Synced from cloudflare/sandbox-sdk#305: cloudflare/sandbox-sdk#305


This PR was automatically created to sync documentation from the sandbox-sdk repository.

Document that waitForPort now uses Server-Sent Events (SSE) streaming
internally instead of HTTP polling. This provides:
- Single connection instead of repeated HTTP requests
- Better performance and reduced container log noise
- Avoids subrequest limits in Workers/DOs

The interval parameter is now server-side polling interval (default: 500ms)
rather than client-side check interval (previously 100ms).

Synced from cloudflare/sandbox-sdk#305
@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/sandbox/ @whoiskatrin, @ghostwriternr, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents

@github-actions
Copy link
Contributor

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants