> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# bindWaitForConnectionUpdate

> Function bindWaitForConnectionUpdate in the Baileys API.

> **bindWaitForConnectionUpdate**(`ev`): (`check`, `timeoutMs`?) => `Promise`\<`void`>

Defined in: [src/Utils/generics.ts:233](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/generics.ts#L233)

## Parameters

### ev

[`BaileysEventEmitter`](/api-reference/interfaces/BaileysEventEmitter)

## Returns

`Function`

### Parameters

#### check

(`u`) => `Promise`\<`undefined` | `boolean`>

#### timeoutMs?

`number`

### Returns

`Promise`\<`void`>
