Ok...
So I believe, the ws npm package can use an agent
an agent in the node runtime, is the client "user-agent" if you will - I don't really know where it sits ![]()
An agent can specify a proxy server, below is one example.
example:
const agent = new HttpsProxyAgent(options);
const socket = new WebSocket(endpoint, { agent: agent });`
I hope this helps