Put a timer on the main form that calls a server function like this every 5 minutes :
@anvil.server.callable
def ping():
return "pong"
I find that this keeps the comms open and hence the session open.
Put a timer on the main form that calls a server function like this every 5 minutes :
@anvil.server.callable
def ping():
return "pong"
I find that this keeps the comms open and hence the session open.