How to pass a socks proxy to Socket.io client #4926
-
I would like to pass a socks proxy to my client-side Socket.io instance.
I tried to pass a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! The type of the Providing the |
Beta Was this translation helpful? Give feedback.
Hi! The type of the
agent
option is indeed wrong, but fixing this would require providing different types for Node.js and browser clients: https://github.com/socketio/engine.io-client/blob/fa479164251dd1f283dd163143b546582161339a/lib/socket.ts#L40-L47Providing the
agent
(and ignoring the typescript error) should work though.