Sign In Register

How can we help you today?

Start a new topic
Answered

RT session life cycle

Hello


When does the system terminate an RT session? Is there a way to run code just before this happens, e.g. by subscribing to an event, like RTSession.onXYZ?


What happens when a fatal error occurs in an RT script? Two cases here, when the RT session is created and in a message interceptor.


Thanks


Best Answer
The RT session wont be retired until 60sec after all players have left/disconnect from the session.

if a fatal error does occur, it will affect how the script executes and is shutdown.
In this case you will sometimes have to wait longer until the server can cleanup the script.

You can use this callback to run code before the session is shutdown...

RTSession.onSessionShutdown(function(){
   
})

 


1 person has this question

Hi Cristian,


Apologies for the delayed response here. We'll look into this and get an answer for you.


Regards,

Liam

Answer
The RT session wont be retired until 60sec after all players have left/disconnect from the session.

if a fatal error does occur, it will affect how the script executes and is shutdown.
In this case you will sometimes have to wait longer until the server can cleanup the script.

You can use this callback to run code before the session is shutdown...

RTSession.onSessionShutdown(function(){
   
})

 

Login to post a comment