Skip to main content
Deno.jupyter.broadcast - Deno documentation
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": "Processing." }, metadata: {}, transient: { display_id: "progress" } }); await new Promise((resolve) => setTimeout(resolve, 500)); await Deno.jupyter.broadcast("update_display_data", { data: { "text/html": "Processing.." }, metadata: {}, transient: { display_id: "progress" } }); ```

Parameters

msgType: string
content: Record<string, unknown>
optional
extra: { metadata?: Record<string, unknown>; buffers?: Uint8Array[]; }

Return Type

Promise<void>