# Function: httpSubscriptionLink()

> 

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

Defined in: [packages/client/src/links/httpSubscriptionLink.ts:74](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/links/httpSubscriptionLink.ts#L74)

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/client/index/type-aliases/TRPCLink.md)\<`TInferrable`\>

## See

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