MCPcopy
hub / github.com/cpaczek/skylight / setUrl

Method setUrl

tracker/src/video/mse.ts:41–48  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

39 constructor(private url: string) {}
40
41 setUrl(url: string): void {
42 if (url === this.url) return;
43 this.url = url;
44 if (!this.stopped) {
45 this.kill();
46 this.spawnProc();
47 }
48 }
49
50 /** Init the WS endpoint (upgrades arrive via handleUpgrade from index). */
51 attach(): void {

Callers 1

mainFunction · 0.95

Calls 2

killMethod · 0.95
spawnProcMethod · 0.95

Tested by

no test coverage detected