function Deno.jupyter.broadcast
Unstable
broadcast(msgType: string,content: Record<string, unknown>,extra?: { metadata?: Record<string, unknown>; buffers?: Uint8Array[]; },): Promise<void>
Broadcast a message on IO pub channel.
await Deno.jupyter.broadcast("display_data", {
data: { "text/html": "<b>Processing.</b>" },
metadata: {},
transient: { display_id: "progress" }
});
await new Promise((resolve) => setTimeout(resolve, 500));
await Deno.jupyter.broadcast("update_display_data", {
data: { "text/html": "<b>Processing..</b>" },
metadata: {},
transient: { display_id: "progress" }
});
Promise<void>