Type Alias: BroadcastChannelScope
ts
type BroadcastChannelScope = "package" | "namespace";Defined in: types/desktop-engine.d.ts:5107
Who a BroadcastChannel reaches, besides the content's own channels of the same name:
"package": every running instance of the same package, e.g. the copies of a wallpaper on each display."namespace": every package whose id has the same namespace,app.desktopengine.<namespace>.<name>: one creator's content, e.g. a widget and a companion made to work together. Only for content installed from the store, whose id the store checked: in a package imported from a file, which can take any id, the constructor throws a "SecurityError" DOMException.
Content run by desktopengine dev (or from the Develop menu) shares "package" and "namespace" channels only with other content run that way; its "namespace" channels need an id of the store's form, app.desktopengine.<namespace>.<name>, otherwise the constructor throws a "SecurityError" DOMException. Live previews in the app's details pane are cut off from other content: a preview's channels reach only the preview's own channels.
