Stay organized with collections
Save and categorize content based on your preferences.
Methods
useEmulator
- useEmulator
(
host
:
string
,
port
:
number
)
:
void
-
Parameters
-
host: string
-
port: number
Returns void
useFunctionsEmulator
- useFunctionsEmulator
(
url
:
string
)
:
void
-
Parameters
Returns void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [functions](/docs/reference/js/v8/firebase.functions).\n- Functions \nThe Cloud Functions for Firebase service interface.\n\nDo not call this constructor directly. Instead, use\n[`firebase.functions()`](/docs/reference/js/v8/firebase.functions).\n\nIndex\n\nConstructors\n\n- [constructor](/docs/reference/js/v8/firebase.functions.Functions#constructor)\n\nMethods\n\n- [httpsCallable](/docs/reference/js/v8/firebase.functions.Functions#httpscallable)\n- [useEmulator](/docs/reference/js/v8/firebase.functions.Functions#useemulator)\n- [useFunctionsEmulator](/docs/reference/js/v8/firebase.functions.Functions#usefunctionsemulator)\n\nConstructors\n\nPrivate constructor\n\n- new Functions ( ) : [Functions](/docs/reference/js/v8/firebase.functions.Functions)\n-\n\n Returns [Functions](/docs/reference/js/v8/firebase.functions.Functions)\n\nMethods\n\nhttpsCallable\n\n- httpsCallable ( name : string , options ? : [HttpsCallableOptions](/docs/reference/js/v8/firebase.functions.HttpsCallableOptions) ) : [HttpsCallable](/docs/reference/js/v8/firebase.functions.HttpsCallable)\n- Gets an `HttpsCallable` instance that refers to the function with the given\n name.\n\n Parameters\n -\n\n name: string \n The name of the https callable function.\n -\n\n Optional options: [HttpsCallableOptions](/docs/reference/js/v8/firebase.functions.HttpsCallableOptions) \n The options for this HttpsCallable instance.\n\n Returns [HttpsCallable](/docs/reference/js/v8/firebase.functions.HttpsCallable)\n\n The `HttpsCallable` instance.\n\nuseEmulator\n\n- useEmulator ( host : string , port : number ) : void\n- Modify this instance to communicate with the Cloud Functions emulator.\n\n Note: this must be called before this instance has been used to do any operations.\n\n Parameters\n -\n\n host: string \n The emulator host (ex: localhost)\n -\n\n port: number \n The emulator port (ex: 5001)\n\n Returns void\n\nuseFunctionsEmulator\n\n- useFunctionsEmulator ( url : string ) : void\n-\n\n deprecated\n\n : Prefer the useEmulator(host, port) method.\n\n Changes this instance to point to a Cloud Functions emulator running\n locally. See \u003chttps://firebase.google.com/docs/functions/local-emulator\u003e\n\n Parameters\n -\n\n url: string\n\nReturns void"]]
The Cloud Functions for Firebase service interface.
Do not call this constructor directly. Instead, use
firebase.functions()
.