Home > @firebase/functions > useFunctionsEmulator
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.
Signature:
export declare function useFunctionsEmulator(functionsInstance: Functions, host: string, port: number): void;
Parameters
Parameter | Type | Description |
---|---|---|
functionsInstance | Functions | |
host | string | The emulator host (ex: localhost) |
port | number | The emulator port (ex: 5001) |
Returns:
void