The Cloud Functions for Firebase service interface.
Do not call this constructor directly. Instead, usefirebase.functions().
Index
Constructors
Methods
Constructors
Private constructor
Methods
httpsCallable
- https
Callable(name: string, options?: HttpsCallableOptions):HttpsCallable Gets an
HttpsCallableinstance that refers to the function with the givenname.Parameters
name:string
The name of the https callable function.
Optional options:HttpsCallableOptions
The options for this HttpsCallable instance.
ReturnsHttpsCallable
The
HttpsCallableinstance.
useEmulator
- use
Emulator(host: string, port: number):void 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.
Parameters
host:string
The emulator host (ex: localhost)
port:number
The emulator port (ex: 5001)
Returnsvoid
useFunctionsEmulator
- use
Functions Emulator(url: string):void - deprecated
Prefer the useEmulator(host, port) method.
Changes this instance to point to a Cloud Functions emulator runninglocally. Seehttps://firebase.google.com/docs/functions/local-emulator
Parameters
url:string
Returnsvoid
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.