Currently each token you authenticate can only have a maximum of 100 distinct channel permissions.

One easy way of getting around this limitation can be achieved through the use of sub-channels.

Sub-channels are regular Realtime channels with the following format:


You can use them as regular channels to send and receive messages, like:

subscribe("chatroom:123" ...)
send("chatroom:123", ...)

When you authenticate a token you can refer to all sub-channels of a given main channel using the * wildcard. 

If you give the read permission to channel chatroom:* you are in fact setting the read permission to chatroom:123 and also to any other sub-channel of the main channel chatroom lime chatroom:345.

Since there are no limits to the number of sub-channels, you can have unlimited authenticated channels using this approach.

Did this answer your question?