The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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