Skip to main content

broadcast

function Deno.jupyter.broadcast
unstable
Jump to headingbroadcast(
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" }
});

Parameters Jump to heading

Jump to headingmsgType: string
Jump to headingcontent: Record<string, unknown>
optional
Jump to headingextra: { metadata?: Record<string, unknown>; buffers?: Uint8Array[]; }

Return Type Jump to heading

Promise<void>
Back to top