Skip to content

An open-source, self-hosted system for apps built with web technologies.

Authorize Client System WebSockets

zohayrslileh42de096e24ce
diff --git a/source/client/view/components/desktop-host/host.ts b/source/client/view/components/desktop-host/host.ts
index 5bd7598..7721daa 100644
--- a/source/client/view/components/desktop-host/host.ts
+++ b/source/client/view/components/desktop-host/host.ts
@@ -1022,6 +1022,15 @@ export default function host(authManager: AuthManager, pane: string, desktop: ()
return new TransferredAnswer([{ ...response, body }], body ? [body] : [])
}
+ // The browser owns the standard WebSocket object. This boundary grants
+ // authority before the frame creates it; no transport proxy is needed.
+ if (word === "websocket") {
+
+ await access.requireAll()
+
+ return []
+ }
+
throw new Error(`The desktop does not know the word "${String(word)}"`)
}
}