voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
29 lines (17 loc) • 845 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/functions](./functions.md) > [useFunctionsEmulator](./functions.usefunctionsemulator.md)
## useFunctionsEmulator() function
Modify this instance to communicate with the Cloud Functions emulator.
Note: this must be called before this instance has been used to do any operations.
<b>Signature:</b>
```typescript
export declare function useFunctionsEmulator(functionsInstance: Functions, host: string, port: number): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| functionsInstance | [Functions](./functions.functions.md) | |
| host | string | The emulator host (ex: localhost) |
| port | number | The emulator port (ex: 5001) |
<b>Returns:</b>
void