-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Workers] Runtime API: TCP Socket API Docs connect()
#8795
Conversation
(connect()
connect()
Deploying with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together! There are some things that need to be changed but in general looking good.
connect()
connect()
connect()
connect()
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
@deadlypants1973 — I'll add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PCX review
Co-authored-by: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
Committed suggestions for @irvinebroque so we can merge ahead of #8914 and before 9AM ET :) |
* add /runtime-apis/connect * Add note about global scope * Add error handling section * Add section about closing sockets with examples of allowHalfOpen * Fix example, add note about --experimental-local * Apply suggestions from code review Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> * Apply suggestions from code review Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> * Remove expectedHostname * Clarify connection between connect() and max open connections * Fix broken link * Move StartTlS considerations up to StartTLS section * Fix error handling code block * Formatting, intro sentence to error handling example * Clarify that existing readers/writers cannot be reused after .startTls() * Rename page from connect to tcp-sockets * Add /protocols page * Edits to /protocols * /runtime-apis/connect -> /runtime-apis/tcp-sockets * Fix broken URL * workers: Apply suggestions from code review Co-authored-by: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> --------- Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> Co-authored-by: Matt Silverlock <msilverlock@cloudflare.com> Co-authored-by: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com>
Do not merge yet
/runtime-apis/connect
/platform/protocols
(Think this is worth adding — "What protocols can I use with Cloudflare Workers?". Will cover HTTP, WebSockets, Outbound TCP, reference Socket Workers blog post)allowHalfOpen
differences (fe93dd3)/platform/protocols
section, and cross-link to that from the/runtime-apis/connect
docs page--experimental-local
)After 05/17/23
--experimental-local
caveat