Concorde documentation (crawl) · interactive version

Concorde guide — Legacy: Sharing data. > New apps: Data flow (get / set / DataProviderKey, decorators). This page documents the historical Publisher proxy API (PublisherManager, publisher.set, onAssign, …). Doc ID: docs/_getting-started/pubsub. Keywords: Concorde, supersoniks, docs/_getting-started/pubsub, pubsub, Legacy: Sharing data, guide, get, set, DataProviderKey, PublisherManager, publisher.set, onAssign, {foo:{hello:["world"]}, bar:"baz"}, myPublisher.foo.hello, null. URL: https://concorde.supersoniks.org/crawl/docs/_getting-started/pubsub.html.

Legacy: Sharing data

New apps: Data flow (get / set / DataProviderKey, decorators). This page documents the historical Publisher proxy API (PublisherManager, publisher.set, onAssign, …).

This section describes how data is shared between graphical and non-graphical components.

Graphical components should not reference each other directly — they stay decoupled via a publish/subscribe store.

The Publisher

Principle

❇️ Order of creation vs subscription theoretically does not matter.

Methods

publisher.set({foo:{hello:["world"]}, bar:"baz"});
publisher.get()
publisher.a.b.onAssign(console.log);

Modern equivalent: get / set / @handle — see Data flow.