erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.64k stars 269 forks source link

Custom proxy for Websocket #254

Open morganfuchs opened 4 months ago

morganfuchs commented 4 months ago

Hello, I'd like to use proxies for websockets but I can't. I need to configure the proxy from a variable.

But even using the example (https://github.com/erictik/midjourney-discord/blob/main/examples/proxy.ts), I get this error: class ProxyWebSocket extends isomorphic_ws_1.default { ^ TypeError: Class extends value undefined is not a constructor or null

Thanks !