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

    Parameters

    • Optionalenable: boolean

    Returns boolean

    // To enable
    await WPP.conn.setKeepAlive();

    // To disable
    await WPP.conn.setKeepAlive(false);