Skip to content
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

Raw TCP & UDP Support? #838

Open
zizifn opened this issue May 7, 2023 · 3 comments
Open

Raw TCP & UDP Support? #838

zizifn opened this issue May 7, 2023 · 3 comments

Comments

@zizifn
Copy link

zizifn commented May 7, 2023

Is your feature request related to a problem? Please describe.
I want to be able to connect the database.

Describe the solution you'd like
If Lagon runtime support raw TCP & UDP API, then DB driver is possible in Lagon.

Describe alternatives you've considered
N/A

Additional context

@zizifn zizifn added the feature label May 7, 2023
@QuiiBz
Copy link
Member

QuiiBz commented May 7, 2023

This is definitely something that will be supported in the future. Note that we'll probably support WebSocket first: #794

There are some discussions in WinterCG to land a common API for sockets, so we'll wait for it to avoid creating a proprietary API: wintercg/admin#43 (comment)

There is also a proposal from Chrome for a Direct Sockets API, but I don't know what's the state of it: https://github.com/WICG/direct-sockets/

@QuiiBz QuiiBz added this to the GA milestone May 7, 2023
@zizifn
Copy link
Author

zizifn commented May 7, 2023

This is definitely something that will be supported in the future. Note that we'll probably support WebSocket first: #794

There are some discussions in WinterCG to land a common API for sockets, so we'll wait for it to avoid creating a proprietary API: wintercg/admin#43 (comment)

There is also a proposal from Chrome for a Direct Sockets API, but I don't know what's the state of it: https://github.com/WICG/direct-sockets/

Common API for sockets maybe be trickly, seems Deno and Workerd share the same interface connect which is not the same as the Direct Sockets API proposal

If I can make a bold guess, I will guess Direct Sockets API has a long way to be final...

@QuiiBz
Copy link
Member

QuiiBz commented May 16, 2023

Cloudflare just released their connect() API: https://blog.cloudflare.com/workers-tcp-socket-api-connect-databases/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants