setAlive method

Future setAlive([
  1. bool value = true
])

Set keep alive state, that will force the focused and online state

Implementation

Future setAlive([bool value = true]) async {
  var aliveValue = value ? '' : false;
  return await wpClient.evaluateJs(
    '''window.WPP.conn.setKeepAlive($aliveValue);''',
    methodName: "setAlive",
  );
}