> ## 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.

# EventRecorder

> Interface exported by @botmesh/core/testing.

Defined in: [testing/identityContract.ts:305](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L305)

Live recording of a provider's event stream (see [recordEvents](https://botmesh.afaya.com.co/api/core/testing/functions/recordEvents.md)).

## Properties

### events

```ts theme={null}
readonly events: InboundEvent[];
```

Defined in: [testing/identityContract.ts:307](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L307)

Every event emitted since recording started, in order.

## Methods

### messages()

```ts theme={null}
messages(): InboundMessage<unknown>[];
```

Defined in: [testing/identityContract.ts:309](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L309)

Just the inbound messages.

#### Returns

[`InboundMessage`](https://botmesh.afaya.com.co/api/core/interfaces/InboundMessage)\<`unknown`>\[]

***

### interactions()

```ts theme={null}
interactions(): InboundInteraction<unknown>[];
```

Defined in: [testing/identityContract.ts:311](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L311)

Just the interactions.

#### Returns

[`InboundInteraction`](https://botmesh.afaya.com.co/api/core/interfaces/InboundInteraction)\<`unknown`>\[]

***

### stop()

```ts theme={null}
stop(): void;
```

Defined in: [testing/identityContract.ts:313](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L313)

Stop recording (unsubscribes from the provider).

#### Returns

`void`


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