MCPcopy Create free account
hub / github.com/PleasureTools/joyBox / Add

Method Add

backend/Src/StreamDispatcher.ts:33–48  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

31 }
32
33 public Add(url: string): boolean {
34 const plugin = this.GetActivePlugin(url);
35
36 if (plugin === null) {
37 return false;
38 }
39
40 const pluginObservables = this.pluginStreams.get(plugin.id);
41
42 if (pluginObservables === undefined) {
43 return false;
44 }
45
46 pluginObservables.add(url);
47 return true;
48 }
49
50 public Remove(url: string) {
51 const plugin = this.GetActivePlugin(url);

Callers 2

CompleteMethod · 0.80
AddObservableMethod · 0.80

Calls 1

GetActivePluginMethod · 0.95

Tested by

no test coverage detected