命名空间:pubsub

方法

示例消息

静止的

exampleMessage() 返回functions.pubsub.Message

获取已填充数据的示例消息。

退货

non-null functions.pubsub.Message

发送消息

静止的

makeMessage(encodedString,attributes)返回functions.pubsub.Message

为具有 Base64 编码字符串形式的数据负载的消息创建 Pubsub 事件的函数。

范围

编码字符串

细绳

pubsubMessage内容的 Base64 编码字符串。

属性

选修的

目的

要指定的pubsubMessage的属性。

值可能为空。

退货

non-null functions.pubsub.Message

发送消息

静止的

makeMessage(json, attribute) 返回functions.pubsub.Message

为带有 JSON 负载的消息创建 Pubsub 事件的函数。

范围

json

目的

pubsubMessage的内容作为 JSON 负载。

值不能为空。

属性

选修的

目的

要指定的pubsubMessage的属性。

值可能为空。

退货

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.

更新于 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.

更新于 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.

更新于 Mar 24, 2022