snapview/tungstenite-rs

Connecting to a unix socket

mdevils opened this issue · 3 comments

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

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

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.

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