(host, route)
| 108 | |
| 109 | /** Open the RuSense island and show `route`. Idempotent (safe to call repeatedly). */ |
| 110 | export function init(host, route) { |
| 111 | ensureShadow(host); |
| 112 | if (!started) { sensingService.start(); started = true; } |
| 113 | return show(route || (current && current.route) || 'dashboard'); |
| 114 | } |
| 115 | |
| 116 | /** Leave the RuSense tab — stop the stream and free the mounted view. */ |
| 117 | export function suspend() { |
nothing calls this directly
no test coverage detected