function · Node only

# fileGatewayStore

A gateway's custody record in a JSON file: survives restarts, so a resent VIA is never posted twice.

`@toip-tools/mesh-transport/node` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/node.ts#L120)

Import:

```ts
import { fileGatewayStore } from "@toip-tools/mesh-transport/node";
```

## Declaration

Signature:

```ts
fileGatewayStore(path: string): GatewayStore;
```

### Parameters

- **`path` (required)**: `string`

### Returns

`GatewayStore`

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

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/node/fileGatewayStore/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
