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

[Feature] Custom Socket Implementations #1432

Closed
zicklag opened this issue Oct 26, 2022 · 3 comments
Closed

[Feature] Custom Socket Implementations #1432

zicklag opened this issue Oct 26, 2022 · 3 comments

Comments

@zicklag
Copy link
Contributor

zicklag commented Oct 26, 2022

Do you think that custom socket implementations would be something you would be open to in the quinn crate?

Right now you must have an std::net::UdpSocket to create an endpoint, but I was thinking about trying to run in the browser using WebRTC for the unreliable transport.

Do you think this something we'd like to support, or would it be better to create a custom Web-specific API built on quinn-proto?

I'd have to look into it more, but I think that the existing quinn API would work fine if we created some kind of a transport abstraction. The executor shouldn't be a problem, because we can still spawn async tasks in WASM.

@djc
Copy link
Collaborator

djc commented Oct 26, 2022

Have a look to see if #1364 will cover your use case.

@zicklag
Copy link
Contributor Author

zicklag commented Oct 26, 2022

Ah, actually I think that's perfect! Sorry for the noise.

I had missed the Endpoint::new_with_abstract_socket() method and only noticed the Endpoint::new method which required a UDP socket.

Thanks!

@zicklag zicklag closed this as completed Oct 26, 2022
@Ralith
Copy link
Collaborator

Ralith commented Oct 26, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants