MCPcopy
hub / github.com/witheve/Eve / BrowserRuntimeClient

Class BrowserRuntimeClient

src/runtime/browser.ts:34–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32//---------------------------------------------------------------------
33
34class BrowserRuntimeClient extends RuntimeClient {
35 client: EveClient;
36
37 constructor(client:EveClient) {
38 let dbs = {
39 "http": new HttpDatabase()
40 }
41 if(client.showIDE) {
42 dbs["view"] = new BrowserViewDatabase();
43 dbs["editor"] = new BrowserEditorDatabase();
44 dbs["inspector"] = new BrowserInspectorDatabase();
45 }
46 super(dbs);
47 this.client = client;
48 }
49
50 send(json) {
51 setTimeout(() => {
52 this.client.onMessage({data: json});
53 }, 0);
54 }
55
56}
57
58export var responder: BrowserRuntimeClient;
59

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected