Restore room handlers after server restart

Hi all.
How can I restore the room handlers with their state after the server is restarted? Some game room (session) logic should continue on the server without connected users.
Maybe I'm wrong in the approach? Could you direct me in the right direction

One thing you can do is set room.autoDispose to false, which will let it keep going after all users have disconnected.

@seiyria Yes, but it does not solve the problem of restarting the server.

hey @kukuts, after restarting is not easily done.

You will not be able to easily restart game loops and etc after the server restarts. The best you can do is persist the relevant state to the DB and load it when the room is created again.