# Function: createHostClient()

```ts
function createHostClient(
   url, 
   host, 
   key, 
   provider?
): HostClient;
```

Defined in: [packages/core/src/session/hosting.ts:790](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L790)

A client for one host, signing as one subscription.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `url` | `string` | - |
| `host` | `string` | The host's key: every status must be signed by it |
| `key` | [`SubscriptionKey`](https://minca.dev/api/core/interfaces/SubscriptionKey.md) | - |
| `provider?` | [`CryptoProvider`](https://minca.dev/api/core/interfaces/CryptoProvider.md) | - |

## Returns

[`HostClient`](https://minca.dev/api/core/interfaces/HostClient.md)
