Documentation

Support

Vivox Unity SDK

Vivox Unity SDK

Automatic connection recovery

Monitor automatic connection recovery for players.
Read time 1 minuteLast updated 2 days ago

An application might temporarily lose internet connectivity when its user moves between internet connection points. For example, a disconnection could occur when a user is roaming between cellular networks, or when a device switches between an LTE mobile data connection and a home wireless network connection. The Vivox SDK provides network connection recovery functionality for connection loss of up to 30 seconds.
VivoxService.Instance.ConnectionRecovering
and
VivoxService.Instance.ConnectionRecovered
are events that can be subscribed to in order to track when the connection is recognized as lost and recovery begins and when the connection is recovered.
A
VivoxService.Instance.ConnectionFailedToRecover
event will be fired if a session resume fails after the application attempts to reconnect to the network.