Connect apps with TMS
Receive events from Total.js apps and send events to them.
Táto stránka ešte nie je preložená. Čítaš originál.
Total.js Message Service (TMS) lets Total.js apps publish events and accept events from other apps. When you add an app as a TMS source, its events appear in FlowOS as components.
Before you start
The app must have TMS turned on. You need:
- the address of its TMS endpoint, for example
https://app.example.com/$tms/; - its TMS token, if it has one.
For OpenPlatform, see Total.js Message Service in the OpenPlatform documentation.
Add a source
- Select Add (plus), then TMS sources.
- Select Add source.
- Enter the address in TMS endpoint.
- Enter the token in Token, or leave it empty if the app has none.
- Select SUBMIT.

The source appears in the TMS sources list with a dot: green when FlowOS is connected to the app, red when it is not.
The new components
The components of the app appear in two groups on the left. Each one shows the name of the app.

| Group | What the component does |
|---|---|
| Subscribe | Sends a message into your flow each time the app publishes this event. It has an Output. |
| Publish | Sends the data it receives to the app. It has an Input. |
Drag them onto the canvas, connect them and select APPLY. For a full example, see React to events from a Total.js app.
Change or remove a source
Open TMS sources and use the pencil to change a source or the trash icon to remove it.
The token is saved in databases/flow.json and in the file that Download design creates.