Không gian tên: pubsub

phương pháp

ví dụTin nhắn

tĩnh

exampleMessage() trả về hàm.pubsub.Message

Tìm nạp một ví dụ Tin nhắn đã được điền dữ liệu.

Trả lại

non-null functions.pubsub.Message

tin nhắn

tĩnh

makeMessage(encodedString, thuộc tính) trả về hàm.pubsub.Message

Chức năng tạo sự kiện Pubsub cho tin nhắn có tải trọng dữ liệu ở dạng chuỗi được mã hóa base64.

Tham số

chuỗi được mã hóa

sợi dây

Chuỗi được mã hóa Base64 cho nội dung của pubsubMessage .

thuộc tính

Không bắt buộc

Sự vật

Các thuộc tính của pubsubMessage cần chỉ định.

Giá trị có thể là null.

Trả lại

non-null functions.pubsub.Message

tin nhắn

tĩnh

makeMessage(json, thuộc tính) trả về hàm.pubsub.Message

Chức năng tạo sự kiện Pubsub cho tin nhắn có tải trọng JSON.

Tham số

json

Sự vật

Nội dung của pubsubMessage dưới dạng tải trọng JSON.

Giá trị không được rỗng.

thuộc tính

Không bắt buộc

Sự vật

Các thuộc tính của pubsubMessage cần chỉ định.

Giá trị có thể là null.

Trả lại

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.

Ngày cập nhật: 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.

Ngày cập nhật: 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.

Ngày cập nhật: Mar 24, 2022