<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [Database](./database.database.md) &gt; [useEmulator](./database.database.useemulator.md)

## Database.useEmulator() method

<b>Signature:</b>

```typescript
useEmulator(host: string, port: number): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  host | string |  |
|  port | number |  |

<b>Returns:</b>

void

