question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unrecognized WebSocket connection option(s) `localAddress`. Did you mean to put these under `headers`

See original GitHub issue

You 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
vikasg603commented, Nov 19, 2020

Hey @darrachequesne The problem got resolved with version socket.io 3.0.3 and engine.io version 4.0.4 Thanks.

0reactions
vikasg603commented, Nov 17, 2020

I tried npm cache clean, and then npm clean install and also react-native clear cache, but same issue.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found