Limit a token to channels
Choose which channels the clients of an access token receive.
On this page
By default an access token receives the messages of all channels. You can limit it to a list of channels, for example a warehouse app that needs only orders.
Set the channels
- On the Setup page, click the token (or choose Edit in its ... menu).
- Click Allow to use only these channels, type a channel name and press Enter. Repeat for each channel.
- To remove a channel, click the × on its tag.
- Click SUBMIT, then APPLY.
The list shows the channels under the token name. A token without channels shows all channels.
What changes
A client connected with the token receives only the messages of the listed channels. Messages of other channels are not sent to it.
For example, with these two tokens:
| Token | Channels | Receives orders | Receives stock |
|---|---|---|---|
| Demo app | all channels | yes | yes |
| Orders app | orders | yes | no |
The change applies to connected clients as soon as you click APPLY.