-
Notifications
You must be signed in to change notification settings - Fork 437
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
[FEATURE REQUEST] Cloudflare Workers support #1572
Comments
Heard from the Cloudflare folks there's an ongoing effort to make the Spec: https://github.com/wintercg/proposal-sockets-api There's a few more weeks of work to polish these up, and further time to improve them based on feedback, but the intent is to make it easier for libraries to start using the connect() API — even before it's provided out-of-the-box in Node.js itself. |
Hi @jdanyow , thanks for bring this up. We have not yet discussed this, but we will definitely keep an eye on this. If the connect() API is standard across runtimes include Nodejs in the future, the custom socket feature PR 1540may able to handle it already. However, it definitely need to be tested. |
Hey @jdanyow, I looked at this. It seems like the connect API is basically a way to get a network socket that implements the webstreams
It would involve some internal refactorings to switch to the web streams api, and we probably would also need to assess the performance impact of having that additional layer between @MichaelSun90 I think the naming here is a bit confusing. The custom socket feature we provide won't work with this, as the custom socket feature expects a Node.js Stream compatible stream to be returned, whereas this |
Is your feature request related to a problem? If so, please give a short summary of the problem and how the feature would resolve it
Recently Cloudflare announced support for TCP sockets. Accompanying the announcement was a release of the pg Postgres client using the new connect() API. The pull request adding support was brianc/node-postgres#2971, in which a new pg-cloudflare package was added and changes were made to take node built-ins like
fs
andcrypto
out of the critical path. There was a followup PR to improve bundler ergonomics: brianc/node-postgres#2978.Would Tedious maintainers and community members support making similar changes to this package? A while back I heard from the Cloudflare team that SQL Server support was on the roadmap and there had been feelers out to the Tedious community for implementation guidance. Wondering if anything is underway or if we could use this issue to take the pulse and track an implementation plan since this does not appear to be a trivial change.
Reference Documentation/Specifications
The text was updated successfully, but these errors were encountered: