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.
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 tows:///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?