Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(socketio-client): Throw an error and show a warning if someone tries to use socket.io-client v3 #2135

Merged
merged 2 commits into from
Nov 22, 2020

Conversation

daffl
Copy link
Member

@daffl daffl commented Nov 22, 2020

Now that Socket.io is version three with many breaking changes is out and the client is installed separately, if you use incompatible versions, things will just hang and not connect. This is an attempt to throw an error and log a message with more information if you try to use incompatible versions. It's a little hacky but there doesn't seem to be a better way to figure out the Socket.io version based on the socket instance.

@daffl daffl merged commit cc3521c into crow Nov 22, 2020
@daffl daffl deleted the socketio-3-warning branch November 22, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant