Is there an easy and fast way to check if user has no network connection?
Is there an easy and fast way to check if user has no network connection?
connected_realtime_realtime_realtime_realtimeUpdate()Update()_realtime.connectedRealtimeRealtimeRealtimeRealtimeRealtimeRealtimeStart()Awake()GetComponent<Realtime>()RealtimeViewRealtimeViewRealtimeViewRealtimeViewRealtimeViewRealtimeViewrealtimerealtimeGetComponent<RealtimeView>()private void Update() {
if (!_realtime.connected)
return;
// rest of the code
}private Realtime _realtime;void Start() {
_realtime = GetComponent<Realtime>();
}RealtimeView realtimeView = GetComponent<RealtimeView>();
if (!realtimeView.realtime.connected)
{
// Handle the case where the user is not connected
}