I saw in the documentation that if my document has an attribute called “channels”, Ex:
“channels”: [“myChannel1”, “myChannel2”]
Then sync gateway will understand that this is a channel without any channel config. So in theory, I could also dynamically subscribe users via mobile:
ReplicatorConfiguration config = new ReplicatorConfiguration(database, new URLEndpoint(url)); config.setReplicatorType(ReplicatorConfiguration.ReplicatorType.PUSH_AND_PULL); config.setContinuous(true); config.setChannels(Arrays.asList("myChannel1", "myChannel2", "myChannel3") config.setAuthenticator(new BasicAuthenticator(username, password));
Is it a valid approach? Is there any limit on the number of channels? Because I might have up to 100k channels using this approach.