Unrecognized WebSocket connection option(s) `localAddress`. Did you mean to put these under `headers`
See original GitHub issueYou want to:
- report a bug
Current behaviour
Receiving Warning as Unrecognized WebSocket connection option(s) `localAddress`. Did you mean to put these under `headers`
Steps to reproduce (if the current behaviour is a bug)
After upgrading socket.io-client to 3.x I am getting this warning while connecting socket.io
Expected behaviour
There should be no warning
Setup
- OS: iOS
- browser: React Native
- socket.io version: ^3.0.0
Other information (e.g. stacktraces, related issues, suggestions how to fix)
This issue is related https://github.com/socketio/socket.io-client/issues/1290 but it’s not what warning I am getting.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Unrecognized WebSocket connection option(s) agent ... - GitHub
You want to: report a bug request a feature Current behaviour When I install socket.io-client on a blank React Native Expo project I...
Read more >Unrecognized WebSocket connection option(s) `agent ...
Yes, this is happening in the WebSocket class constructor in Socket.io. I think it ... Did you mean to put these under `headers`?'...
Read more >Unrecognized WebSocket connection option(s) `agent ...
Unrecognized WebSocket connection option (s) `agent`, `perMessageDeflate`, `pfx`, `key`, ... Did you mean to put these under `headers`?.
Read more >API — websockets 3.4 documentation - Read the Docs
This class implements common parts of the WebSocket protocol. It assumes that the WebSocket connection is established. The handshake is managed in subclasses ......
Read more >RFC 7118: The WebSocket Protocol as a Transport for the ...
It is expected that other client applications (those running in personal ... 2014 include the value "sip" in the Sec-WebSocket-Protocol header in its ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @darrachequesne The problem got resolved with version socket.io 3.0.3 and engine.io version 4.0.4 Thanks.
I tried npm cache clean, and then npm clean install and also react-native clear cache, but same issue.