Skip to content

How to pass a socks proxy to Socket.io client #4926

Discussion options

You must be logged in to vote

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-L47

Providing the agent (and ignoring the typescript error) should work though.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AxelConceicao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants