Spazio dei nomi: pubsub

Metodi

esempioMessage

statico

exampleMessage() restituisce funzioni.pubsub.Message

Recupera un messaggio di esempio già popolato con i dati.

ritorna

non-null functions.pubsub.Message

makeMessage

statico

makeMessage(encodedString, attributi) restituisce funzioni.pubsub.Message

Funzione per creare un evento Pubsub per un messaggio con payload di dati sotto forma di una stringa con codifica base64.

Parametro

stringa codificata

corda

Stringa con codifica Base64 per il contenuto di un pubsubMessage .

attributi

Opzionale

Oggetto

Attributi di pubsubMessage da specificare.

Il valore potrebbe essere nullo.

ritorna

non-null functions.pubsub.Message

makeMessage

statico

makeMessage(json, attributi) restituisce funzioni.pubsub.Message

Funzione per creare un evento Pubsub per un messaggio con payload JSON.

Parametro

json

Oggetto

Contenuto di pubsubMessage come payload JSON.

Il valore non deve essere nullo.

attributi

Opzionale

Oggetto

Attributi di pubsubMessage da specificare.

Il valore potrebbe essere nullo.

ritorna

non-null functions.pubsub.Message

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Aggiornamento: Mar 24, 2022

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Aggiornamento: Mar 24, 2022

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Aggiornamento: Mar 24, 2022