millicast / millicast-sdk

SDK for building a realtime broadcaster using the Millicast platform.
Other
37 stars 28 forks source link

Fix/first time reconnect #223

Closed fcancela closed 1 year ago

fcancela commented 1 year ago

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.