# Events Store (/sdks/nodejs/reference/events-store)



Persist events with `sendEventStore` and replay them with `subscribeToEventsStore`, supplying `startFrom` and `startValue` fields.

## sendEventStore [#sendeventstore]

```typescript
await client.sendEventStore(message: EventStoreMessage): Promise<EventStoreResult>
```

**Returns:** `EventStoreResult` — broker acknowledgement metadata.

## subscribeToEventsStore [#subscribetoeventsstore]

```typescript
client.subscribeToEventsStore(subscription: EventStoreSubscription): Subscription
```

Adds `startFrom` and `startValue` fields for replay configuration.

## Quick Usage [#quick-usage]

```typescript title="events.ts"
await client.sendEventStore(
  createEventStoreMessage({ channel: "audit", body: Buffer.from("record") }),
);
```

## See Also [#see-also]

* [Events Store Examples](/sdks/nodejs/how-to/events-store/)
* [Events Store pattern](/learn/events-store/getting-started)
* [Node.js SDK Getting Started](/sdks/nodejs)
