Skip to main content
Version: 5.17.0

OnReconnectFailed

public OnReconnectFailed OnReconnectFailed;

Description

This event handler is triggered when a disconnection occurs due to network issues and reconnection ultimately fails.\ Once this event occurs, no further reconnection attempts are made, and you must manually call Connect to reconnect to the server.\ The number of reconnection attempts can be set using the reconnectionAttempts value when calling Connect.

Example

Backend.Notification.OnReconnectFailed = () =>
{
Debug.Log($"Real-time notification [OnReconnectFailed(Reconnection failed)]");

// Afterward, writes processing code.
};