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

# assertPresenceWhileDisconnected()

> Function exported by @botmesh/core/testing.

```ts theme={null}
function assertPresenceWhileDisconnected(provider, probe): Promise<void>;
```

Defined in: [testing/capabilityContract.ts:164](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/capabilityContract.ts#L164)

Throw a [CapabilityContractError](https://botmesh.afaya.com.co/api/core/testing/classes/CapabilityContractError.md) unless the (not connected) provider follows the
presence-while-disconnected rule (see [checkPresenceWhileDisconnected](https://botmesh.afaya.com.co/api/core/testing/functions/checkPresenceWhileDisconnected.md)).

## Parameters

| Parameter | Type |
| - | - |
| `provider` | `Partial`\<[`IProvider`](https://botmesh.afaya.com.co/api/core/interfaces/IProvider)> |
| `probe` | [`PresenceProbe`](https://botmesh.afaya.com.co/api/core/testing/interfaces/PresenceProbe) |

## Returns

`Promise`\<`void`>

## Throws


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.