(url: string)
| 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 { |