softprops / hyperlocal

🔌 ✨rustlang hyper bindings for local unix domain sockets
MIT License
227 stars 46 forks source link

Client access websocket without proxy #59

Open fgadaleta opened 2 years ago

fgadaleta commented 2 years ago

I am using hyperlocal and hyper-tungstenite to have a websocket over UDS. For a client to access such websocket I currently proxy the websocket to localhost with something like socat TCP-LISTEN:12345 UNIX-CONNECT:/tmp/hyperlocal.sock Then I regularly connect to ws:///localhost:12345

However, I would like to avoid proxying the websocket and access it directly via /tmp/hyperlocal.sock. I still need a websocket not a http GET/POST request.

Any hint?