What is called when max CCU is reached?
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
What is called when max CCU is reached?
yakirbu
2020-02-03 15:54:34
Hello Photon,
what function is called when a player tries to connect to a server that has already 100 CCU and the limit is 100 CCU?
What exception is thrown? How can I catch it?
I know that for PUN v1, a callback was called 'OnPhotonMaxCccuReached', but it doesn't exist in v2.
Thanks
Comments
OneManArmy
2020-02-03 16:19:21
public override void OnDisconnected (DisconnectCause cause){
if(cause == DisconnectCause.MaxCcuReached){
//max reached
}
}
@OneManArmy wrote: »
public override void OnDisconnected (DisconnectCause cause){ if(cause == DisconnectCause.MaxCcuReached){ //max reached } }
Thank you!
Hi @yakirbu,
Thank you for choosing Photon!
@OneManArmy is right.
The information could be found on the "Migration Notes" page.