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: Use WeakMap to connect socket to connection #1509

Merged
merged 4 commits into from
Aug 17, 2019
Merged

fix: Use WeakMap to connect socket to connection #1509

merged 4 commits into from
Aug 17, 2019

Conversation

daffl
Copy link
Member

@daffl daffl commented Aug 17, 2019

Instead of the Symbol workaround, we can use the WeakMap data structure for what it is supposed to which is mapping an object to another object - in our case the connection object to the socket instance.

Related to #1430

@daffl daffl merged commit 64807e3 into master Aug 17, 2019
@daffl daffl deleted the socket-map branch August 17, 2019 15:22
EliSadaka pushed a commit to yusernetwork/authentication-oauth that referenced this pull request Oct 20, 2020
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