Documentation Index Fetch the complete documentation index at: https://cloudflaredoc.ubitools.com/realtime/llms.txt Use this file to discover all available pages before exploring further.
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com
const plugin = meeting.plugins.all.get(pluginId);plugin.on("enabled", () => { // The plugin became active for the local participant});plugin.on("closed", () => { // The plugin was deactivated for the local participant});
// Create or get a store for your pluginconst store = meeting.stores.create("counter");// Update a value for all participantsawait store.set("value", 1);// React to updates from any participantstore.subscribe("value", ({ value }) => { document.querySelector("#value").textContent = value;});