What is called when max CCU is reached?

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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  
		}  
	}

yakirbu
2020-02-03 16:25:03

@OneManArmy wrote: »

  public override void OnDisconnected (DisconnectCause cause){  
  	if(cause == DisconnectCause.MaxCcuReached){  
  		//max reached  
  	}  
  }

Thank you!

JohnTube
2020-02-03 16:25:35

Hi @yakirbu,

Thank you for choosing Photon!

@OneManArmy is right.
The information could be found on the "Migration Notes" page.

Back to top