bun icon indicating copy to clipboard operation
bun copied to clipboard

Support `ws+unix:` in WebSocket client

Open Electroid opened this issue 2 years ago • 4 comments

This should be possible, but we don't support it yet.

const ws = new WebSocket("ws+unix:///path/to/file.sock");

Electroid avatar Aug 31 '23 03:08 Electroid

  1. A boolean arg here + call connectUnix if is unix:

https://github.com/oven-sh/bun/blob/main/src/http/websocket_http_client.zig#L268

  1. Allow "unix" protocol in

https://github.com/oven-sh/bun/blob/main/src/bun.js/bindings/webcore/WebSocket.cpp#L296

Jarred-Sumner avatar Aug 31 '23 03:08 Jarred-Sumner

@Jarred-Sumner Hi, can you assign this to me?

WingLim avatar Sep 08 '23 11:09 WingLim

I am doing some experimenting with bun and ran into this today. Would be great to see this landed.

cs01 avatar Dec 12 '25 00:12 cs01

I will take a shot at fixing this

cs01 avatar Dec 12 '25 03:12 cs01