# Function: localLink()

> 

> **localLink**\<`TRouter`\>(`opts`): [`TRPCLink`](https://trpc.io/docs/typedoc/client/index/type-aliases/TRPCLink.md)\<`TRouter`\>

Defined in: [packages/client/src/links/localLink.ts:40](https://github.com/trpc/trpc/blob/772a6ababaab0ae3b76fabf186e5398945f03bab/packages/client/src/links/localLink.ts#L40)

localLink is a terminating link that allows you to make tRPC procedure calls directly in your application without going through HTTP.

## Type Parameters

| Type Parameter |
| ------ |
| `TRouter` *extends* `AnyRouter` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | [`LocalLinkOptions`](https://trpc.io/docs/typedoc/client/index/type-aliases/LocalLinkOptions.md)\<`TRouter`\> |

## Returns

[`TRPCLink`](https://trpc.io/docs/typedoc/client/index/type-aliases/TRPCLink.md)\<`TRouter`\>

## See

https://trpc.io/docs/client/links/localLink
