bun
bun copied to clipboard
Support `ws+unix:` in WebSocket client
This should be possible, but we don't support it yet.
const ws = new WebSocket("ws+unix:///path/to/file.sock");
- A boolean arg here + call connectUnix if is unix:
https://github.com/oven-sh/bun/blob/main/src/http/websocket_http_client.zig#L268
- Allow "unix" protocol in
https://github.com/oven-sh/bun/blob/main/src/bun.js/bindings/webcore/WebSocket.cpp#L296
@Jarred-Sumner Hi, can you assign this to me?
I am doing some experimenting with bun and ran into this today. Would be great to see this landed.
I will take a shot at fixing this