MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / sendRawMessage

Method sendRawMessage

src/test/web/clientApi.ts:18–26  ·  view source on GitHub ↗
(message: T)

Source from the content-addressed store, hash-verified

16 ClientAPI.url = url;
17 }
18 public static async sendRawMessage<T>(message: T): Promise<void> {
19 await fetch(ClientAPI.url, {
20 method: 'post',
21 body: JSON.stringify(message),
22 headers: {
23 'Content-Type': 'application/json'
24 }
25 });
26 }
27 public static async captureScreenShot(filename: string): Promise<void> {
28 await ClientAPI.sendRawMessage({ command: 'captureScreenShot', filename });
29 }

Callers 2

writeReportProgressFunction · 0.80
captureScreenShotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected