The room is deleted ...

Options
Hello, forum users! I'm curious to know if it's possible to make the Photon Unity Network so that if all players leave the room, the room will not be deleted.
P.S. I tried MasterClient - I did, did, did, and then bang! And everyone left ... And nothing remained. :(

Comments

  • Hi @Pub,

    if you want to persist rooms, I recommend you taking a look at the Webhooks documentation page.

    You could also apply the EmptyRoomTtl setting from the RoomOptions while creating the room. This way the room won't be removed for a certain amount of time after the last client has left it. However doing a persistent room by using this setting is strongly not recommended, because clients might have really long loading times due to buffered messages if the room exists for a certain amount of time.
  • Pub
    Options
    "This way the room won't be removed for a certain amount of time after the last client has left it."
    You do not know what this time interval is equal to?
  • Pub
    Options
    ~Minutes, ~Hours, ~Days?
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited July 2018
    Options
    Hi @Pub,

    Thank you for choosing Photon!

    EmptyRoomTTL is in milliseconds.
    The maximum value for Photon Cloud is 300000ms (5 minutes).
    The maximum value for self-hosted Photon Server is 60000ms (1 minute)
    You can adjust this maximum value for self-hosted Photon Server.
  • Pub
    Options
    Hi JohnTube!
    Five minutes after the last player leaves the room, will it be deleted?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Five minutes after the last player leaves the room, will it be deleted?
    Yes.