This addresses cookies not being persisted.
See: https://socket.io/docs/v4/client-options/
"Starting with version 4.7.0, when setting the withCredentials option to true, the Node.js client will now include the cookies in the HTTP requests, making it easier to use it with cookie-based sticky sessions."
This addresses cookies not being persisted. See: https://socket.io/docs/v4/client-options/ "Starting with version 4.7.0, when setting the withCredentials option to true, the Node.js client will now include the cookies in the HTTP requests, making it easier to use it with cookie-based sticky sessions."
nb: may also need to set withCredentials.