privateRateLimitCooldownm_rateLimitQuery=newRateLimitCooldown(1.5f);// Used for both the lobby list UI and the in-lobby updating. In the latter case, updates can be cached.
// Lobbies will automatically delete the lobby if unoccupied, so we don't need to take further action.
}
/// <param name="data">Key-value pairs, which will overwrite any existing data for these keys. Presumed to be available to all lobby members but not publicly.</param>
if(result!=null)
m_RemoteLobby=result;
}
privateconstintm_LobbyUpdateTime=500;
#region LobbyLoops
constintm_LobbyUpdateTime=1000;
asyncTaskGetLobbyLoop()
{
//In this sample we only use the loop internally, when we've joined. Only after we have joined or created a lobby can we poll for updates.
}
}
privateconstintk_heartbeatPeriodMS=8000;// The heartbeat must be rate-limited to 5 calls per 30 seconds. We'll aim for longer in case periods don't align.
constintk_heartbeatPeriodMS=8000;// The heartbeat must be rate-limited to 5 calls per 30 seconds. We'll aim for longer in case periods don't align.
/// <summary>
/// Lobby requires a periodic ping to detect rooms that are still active, in order to mitigate "zombie" lobbies.