As the DataSHIELD sessions are working in parallel, this function helps at keeping idle connections alive while others are working. Any communication failure must be silently processed.

dsKeepAlive(conn)

Arguments

conn

An object inheriting from DSConnection-class.

Examples

if (FALSE) {
con <- dsConnect(DSOpal::Opal(), "server1",
  username = "dsuser", password = "password", url = "https://opal-demo.obiba.org")
dsKeepAlive(con)
dsDisconnect(con)
}