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

Connecting to a unix socket #415

Closed
mdevils opened this issue Mar 25, 2024 · 3 comments
Closed

Connecting to a unix socket #415

mdevils opened this issue Mar 25, 2024 · 3 comments

Comments

@mdevils
Copy link

mdevils commented Mar 25, 2024

Could you please advice me, how do I connect to a unix socket by file path using tungstenite library?

@agalakhov
Copy link
Member

Just connect to the socket first using the standard library. Then pass already connected socket to tungstenite. That's how it works.

@daniel-abramov
Copy link
Member

Just a short elaboration: once you connect to the UNIX socket through regular means, you can pass the resulted stream to client() or other similar functions.

@mdevils
Copy link
Author

mdevils commented Mar 27, 2024

@agalakhov, @daniel-abramov, thank you for your help guys, I've solved it using socket2 crate.

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

No branches or pull requests

3 participants