summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-client/src/preload.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-02 08:39:56 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-02 08:39:56 +0200
commite941cc4c39c38a12220153ea572bd4c7bb92fde0 (patch)
treeb7a0c1f04eb642f4aa050508b3e24bb4cf66a67a /packages/meshbay-client/src/preload.js
parentfee265e0046e85c3db0e5bb9608b666d2e9547ab (diff)
downloadmeshbay-e941cc4c39c38a12220153ea572bd4c7bb92fde0.tar.gz
feat(client): list cast receivers as they answer
The scan still runs six seconds, but the picker polls what it has found and shows each receiver immediately. A rescan no longer has its timer cut short by the scan it replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-client/src/preload.js')
-rw-r--r--packages/meshbay-client/src/preload.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/meshbay-client/src/preload.js b/packages/meshbay-client/src/preload.js
index e9c34d2..665ec1f 100644
--- a/packages/meshbay-client/src/preload.js
+++ b/packages/meshbay-client/src/preload.js
@@ -175,7 +175,8 @@ contextBridge.exposeInMainWorld('meshbay', {
subtitle: (sub) => ipcRenderer.invoke('cast:subtitle', sub),
finish: () => ipcRenderer.invoke('cast:finish'),
status: () => ipcRenderer.invoke('cast:status'),
- discover: () => ipcRenderer.invoke('cast:discover'),
+ scan: () => ipcRenderer.invoke('cast:scan'),
+ devices: () => ipcRenderer.invoke('cast:devices'),
chromecastConnect: (opts) => ipcRenderer.invoke('cast:chromecast:connect', opts),
chromecastReload: (opts) => ipcRenderer.invoke('cast:chromecast:reload', opts),
chromecastDisconnect: () => ipcRenderer.invoke('cast:chromecast:disconnect'),