Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. LouisonDVC
    3. Posts
    • Profile
    • More
      • Continue chat with LouisonDVC
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by LouisonDVC

    Destroy a room after a set duration if no one joined it (sovled)

    Hi, I'm building an app that enables users to create room for players before them joining it, but I need the room to destroy itself after a few hours if no one joined it. Right now, if some players join a room, when they leave the room calls the onDispose() event and is shutdown. But if no one joins it, it stays iddle with no limit.
    Is there a way to set a timeout if nothing is made on the room after a given time? I've checked the documentation with no luck.
    Thanks a lot!

    posted in Questions & Help •