Change reconnection after initial connection #3871
-
Hi, I have a list of URL's i want to try and make a connection too. Once i have a working connection to one of the URL's i want to flip the reconnection flag to true. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can simply update the socket.io.reconnection(true); Documentation: https://socket.io/docs/v4/client-api/#manager-reconnection-value |
Beta Was this translation helpful? Give feedback.
You can simply update the
reconnection
attribute of the Manager:Documentation: https://socket.io/docs/v4/client-api/#manager-reconnection-value