You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
When thaliMobile accepts that a peer is no longer available it needs to call the thaliMobileNativeWrapper.terminateListener for that peer so we don't squat on sockets forever.
The text was updated successfully, but these errors were encountered:
* @property {boolean} peerAvailable If true this indicates that the peer is
* available for connectivity. If false it means that the peer can no longer be
* connected to. For too many reasons to count it's perfectly possible to never
* get a false for peerAvailable. It is also possible to get a false when the
* peer is still reachable. A classic example is on Android where the app can go
* into the background reducing the power to the BLE radio which can make the
* peer seem to disappear. But Bluetooth would still be on full power so a
* connect could still work. So this value can at best be treated as a hint.
If this is still the case (possible to get a false when the peer is still reachable) then cleaning up peer listener will make it impossible to connect to the peer again even if it is still available.
I see 2 options here:
We always trust peerAvaible: false from native layer and when we receive it we clean up peer listeners.
When thaliMobile accepts that a peer is no longer available it needs to call the thaliMobileNativeWrapper.terminateListener for that peer so we don't squat on sockets forever.
The text was updated successfully, but these errors were encountered: