You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 🍀
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.
The text was updated successfully, but these errors were encountered: