# Function: httpSubscriptionLink()

> 

> **httpSubscriptionLink**\<`TInferrable`, `TEventSource`\>(`opts`): [`TRPCLink`](https://trpc.io/docs/typedoc/react-query/index/type-aliases/TRPCLink.md)\<`TInferrable`\>

Defined in: packages/client/dist/index.d.mts:311

A terminating link that runs subscriptions over Server-Sent Events.

## Type Parameters

| Type Parameter |
| ------ |
| `TInferrable` *extends* `InferrableClientTypes` |
| `TEventSource` *extends* `AnyConstructor` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | `HTTPSubscriptionLinkOptions`\<`inferClientTypes`\<`TInferrable`\>, `TEventSource`\> |

## Returns

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

## See

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