function · Browser and Node

# localWitnessClient

A client for a witness in the same process. Copies through text, as a remote one would.

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/witness.ts#L316)

Import:

```ts
import { localWitnessClient } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
localWitnessClient(w: Witness): WitnessClient;
```

### Parameters

- **`w` (required)**: `Witness`

### Returns

`WitnessClient`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/localWitnessClient/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
