PingFailedReason

public enum PingFailedReason

Entries

Link copied to clipboard

Lost pong limit exceeded: 6 in the foreground, 1 in the background. Triggered when sending a ping.

Link copied to clipboard

Server timeout exceeded. When returning from the background to the foreground, calculate the difference between the last received pong time and the current time. If it exceeds the configured time, the user is considered offline.

Link copied to clipboard
Link copied to clipboard

Triggered when the difference between the time of receiving a pong and the first ping in the queue exceeds the timeout threshold. The condition is similar to LOST_PONG_LIMIT, but the triggering timing is different.

Link copied to clipboard

The app returns to the foreground, but it is not in the CONNECTED state, triggering a reconnection

Functions

Link copied to clipboard
public static HeartBeatManager.PingFailedReason valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.