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

    Parameters

    • enable: boolean = true

    Returns boolean

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

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