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

The visibility of the "auth" property prevents it from being updated #1453

Closed
krambono opened this issue Mar 17, 2021 · 1 comment
Closed
Labels
bug Something isn't working
Milestone

Comments

@krambono
Copy link

auth property is set as private and readonly.
Therefore, we can't update it as the documentation show us.

To Reproduce

Socket.IO client version: 4.0.0

Client

I get a Typescript error here :

socket.auth.token = "efgh";
socket.disconnect().connect();

Expected behavior
We should have at least a setter to update this property.

@krambono krambono added the bug Something isn't working label Mar 17, 2021
darrachequesne pushed a commit that referenced this issue Mar 31, 2021
@darrachequesne
Copy link
Member

This should be fixed by c150223.

@darrachequesne darrachequesne added this to the 4.0.1 milestone Apr 1, 2021
sunrise30 added a commit to sunrise30/socket.io-client that referenced this issue Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants