Skip to content

How to refresh the browser cookie? #436

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

Closed
wnjustdoit opened this issue Jan 16, 2020 · 1 comment
Closed

How to refresh the browser cookie? #436

wnjustdoit opened this issue Jan 16, 2020 · 1 comment
Labels
question 🤔 Further information is requested wontfix ❌ This will not be worked on

Comments

@wnjustdoit
Copy link

When I use the single web socket client, it connect just as the client page loaded. After that, the client cookies may be updated during the socket client alive. So my question is how to refresh cookies to the socket client, the it requests the backend with those newest cookies or something else of the browser?
One possible solution is:
this.$socket.client.disconnect(); this.$socket.client.connect();
But when call disconnect method, the error occured like: TypeError: this.$socket.$unsubscribe is not a function
Another possible solution is to create a new web socket client each time when the page is refreshed.

Look forward to your reply.

@probil probil added the question 🤔 Further information is requested label Mar 10, 2020
@probil
Copy link
Owner

probil commented May 29, 2020

Hey @wnjustdoit
This plugins is only a small wrapper around socket.io-client, so you should probably ask your question in socket.io-client community instead. It's quite an edge case I can tell you. 🤔

If you you have any other vue-socket.io-extended questions I'll be glad to answer.
Thanks for your question anyway
Good luck 🍀

@probil probil added the wontfix ❌ This will not be worked on label May 29, 2020
@probil probil closed this as completed May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 🤔 Further information is requested wontfix ❌ This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants