Skip to main content

Share clients and channels across groups

Clients and channels cannot currently be shared directly between groups. You can share their data indirectly as follows:

Step 1: Create a separate channel in the destination group. In this example, we want Group 2 to use data from Client 1 and Channel 1 in Group 1.

image.png

Create Channel 2 in Group 2.

Bvdimage.png

Step 2: Create two rules:

  1. Rule 1 subscribes to Channel 1 and publishes to Channel 2.
  2. Rule 2 subscribes to Channel 2 and writes its data to the internal database.

BsOimage.png

8tbimage.png

When Client 1 publishes data to Channel 1, the rule forwards it to Channel 2 through NATS.

1Q6image.png

qH5image.png

Group 2 can now view data originating from Client 1 through Channel 1 in Group 1.