summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorTrevor Manz <trevor.j.manz@gmail.com>2023-10-04 07:05:20 -0400
committerGitHub <noreply@github.com>2023-10-04 13:05:20 +0200
commit9a46a824bd897e240af8a14f9d950ab6d95f42a5 (patch)
tree9c6bf70579452767b194112d6a531c14feec5652 /cli/js
parentda0b945804f19903beac71b23ff1040ebdb9b554 (diff)
feat(jupyter): send binary data with `Deno.jupyter.broadcast` (#20755)
Adds `buffers` to the `Deno.jupyter.broadcast` API to send binary data via comms. This affords the ability to send binary data via websockets to the jupyter widget frontend.
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/40_jupyter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/40_jupyter.js b/cli/js/40_jupyter.js
index 10dbccf4c..5a30a6b8e 100644
--- a/cli/js/40_jupyter.js
+++ b/cli/js/40_jupyter.js
@@ -9,8 +9,8 @@ function enableJupyter() {
} = core.ensureFastOps();
globalThis.Deno.jupyter = {
- async broadcast(msgType, content, { metadata = {} } = {}) {
- await op_jupyter_broadcast(msgType, content, metadata);
+ async broadcast(msgType, content, { metadata = {}, buffers = [] } = {}) {
+ await op_jupyter_broadcast(msgType, content, metadata, buffers);
},
};
}