-
Notifications
You must be signed in to change notification settings - Fork 3k
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
if randomizationFactor === 0, that will not work! #1231
Comments
This bug is still present as of latest. The docs says
But the code does |
Closed due to inactivity, please reopen if needed. |
sorry to tag onto this @darrachequesne, but im having this exact issue
mysocket output is as follows
|
i think i found the issue socket.io-client/lib/manager.ts Line 365 in 7326bd5
whats happening is when you set the value to 0, Javascript is deciding 0 is FALSE so revering back to 0.5 proof if you set value to 0.1 that works fine but 0 doesnt work |
Also setting |
have submitted patch #1483 |
You want to:
Current behaviour
this.randomizationFactor(opts.randomizationFactor || 0.5);
Expected behaviour
if (opts.randomizationFactor === undefined) {
opts.randomizationFactor === 0.5
}
this.randomizationFactor(opts.randomizationFactor);
Setup
The text was updated successfully, but these errors were encountered: