Openvidu reconnect issue after when all are out

How are you, everyone.
I am very thanks for openvidu team for share such this good Framework.
@micael.gallego @CSantosM

I am making video conference system by this openvidu.
all were good but now I have some problem. plz help me on this point.

  • site admin create session but didn’t login in session, only create session. (of course don’t create token of him, so this session is empty)
  • I made list for getting all sessions, so users can participate any session on list.
    so anyone login in session.
  • but he go out soon 'cause he is waiting for someone, but anyone doesn’t login.
    I didn’t delete session 'cause session can delete by only room manager - admin.
    so this session exist on session list.
  • other man login in this session
    at this point, openvidu session create generate token but I got 404 error

// The request was made and the server responded with a status code (not 2xx)
reject(new Error(error.response.status.toString()));
this is error message.
** I used openvidu-node-client

I think this is occured by openvidu server that all active user logout in this session,
how to handle this? I want to generate token permantely even if session doesnt’ delete by admin.
thanks

OpenVidu deletes sessions if nobody connects them after some time. This behavior is controlled with properties OPENVIDU_SESSIONS_GARBAGE_INTERVAL and OPENVIDU_SESSIONS_GARBAGE_THRESHOLD. It can be deactivated if you want.

But for your use case, I think is better to create sessions outside OpenVidu (in your own database, for example) and just create the session in OpenVidu when the first user enters on it).

Regards

Thanks for your advice.

I recreate empty session when all user logout.

Thanks.

@micael.gallego
I think if I make a blank user (hidden user) in session, then sessin won’t close.
is this possible?
if possible, how to do this?