MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / DownloadHandler

Class DownloadHandler

webiojs/src/handlers/download.ts:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import {b64toBlob} from "../utils";
4
5export class DownloadHandler implements CommandHandler {
6 accept_command: string[] = ['download'];
7
8 constructor() {
9 }
10
11 handle_message(msg: Command) {
12 let blob = b64toBlob(msg.spec.content);
13 saveAs(blob, msg.spec.name, {}, false);
14 }
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…