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

Store cookies for sticky session #474

Open
DanielChabrowski opened this issue Oct 7, 2024 · 1 comment
Open

Store cookies for sticky session #474

DanielChabrowski opened this issue Oct 7, 2024 · 1 comment

Comments

@DanielChabrowski
Copy link

Hi,
I've noticed that the recommended way of using multiple socket.io server nodes that do http long-polling and therefore maintaining a sticky session is to be done via cookies - according to https://socket.io/docs/v4/using-multiple-nodes/.

However, this crate does not seem to support that as reqwest's cookie store needs to be enabled as a feature and through a client builder.

Would you consider adding that functionality? I'll happily prepare a PR.

@DanielChabrowski
Copy link
Author

This might not be that easy as I initially thought due to the fact that there are two transports created - one for handshake and one afterwards with the SID which wouldn't share cookies.

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

No branches or pull requests

1 participant