This PR modifies the reconnection logic so that the first reconnection attempt emits a reconnect event.
This was a problem for the apps using the SDK as they could not react to a reconnection if it was successful on the first attempt.
We added an optional parameter to the reconnect method and added some default error messages in order to have backward compatibility with the structure of the emitted data.
This PR modifies the reconnection logic so that the first reconnection attempt emits a reconnect event.
This was a problem for the apps using the SDK as they could not react to a reconnection if it was successful on the first attempt.
We added an optional parameter to the
reconnect
method and added some default error messages in order to have backward compatibility with the structure of the emitted data.