Auto join on room created

I want my front end to autojoin the room when it was created. Is it possible, or I have to store the rooms in temp database and check it with interval?

There’s no need to store Session information in a database, if your app doesn’t need to do so for other business logic. Just create a Session with a known identifier in OpenVidu (check out Join a session - OpenVidu Docs). If you receive a 200 response (see HTTP reponses in REST API docs), then it means that petition created a new Session. If you receive a 409 response, then it means the session already existed, and is available to create new Connections. You can just create a new Connection associated to it, to then send its token to the frontend.

1 Like

Thank you, Pablo! I will try this