We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.2.4+fd9a5ea66
Darwin 24.4.0 arm64 arm
import { SocksProxyAgent } from 'socks-proxy-agent'; import { WebSocket } from 'ws'; const proxy = 'socks5h://...'; let ws = new WebSocket('wss://echo.schooling.workers.dev/', { agent: new SocksProxyAgent(proxy) }); ws.onmessage = (m) => console.log(m.data);
The console will, on Bun, log your IP. On Node, the console will log the proxy's IP.
I expect that Bun will use the agent and output the correct IP address.
Instead, I see my computer's IP address.
This is similar to Bun failing to support agents on http requests. However, this is very annoying (and overall different) considering that:
ws
node_modules
It would be incredibly nice if we could specify something as simple as $ws to get the native module back, or if Bun could implement it.
$ws
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.2.4+fd9a5ea66
What platform is your computer?
Darwin 24.4.0 arm64 arm
What steps can reproduce the bug?
The console will, on Bun, log your IP. On Node, the console will log the proxy's IP.
What is the expected behavior?
I expect that Bun will use the agent and output the correct IP address.
What do you see instead?
Instead, I see my computer's IP address.
Additional information
This is similar to Bun failing to support agents on http requests. However, this is very annoying (and overall different) considering that:
ws
module, which would usually make this possible, removing core functionalityws
vianode_modules
throws an error due to a lack of support.It would be incredibly nice if we could specify something as simple as
$ws
to get the native module back, or if Bun could implement it.The text was updated successfully, but these errors were encountered: