With #140 the app supports only one server. But it would be better if app could work with multiple servers. See how Rocket.Chat did it. Probably we could extra the logic from Rocket.Chat.Cordova. Rocket.Chat might be interested in doing that as a general library, too.
This is probably both easy and hard. It is easy conceptually, but there might be some tricky details to make it work well.
Also, there is a difference between supporting changing one connection of the app, or supporting multiple connections to multiple servers at the same time. Probably if one uses the app with multiple servers, you want to be connected to all of them at the same time to get notifications for all servers. Or at least get notifications for all servers, you might not need to be really connected to all servers for that, no?
With #140 the app supports only one server. But it would be better if app could work with multiple servers. See how Rocket.Chat did it. Probably we could extra the logic from Rocket.Chat.Cordova. Rocket.Chat might be interested in doing that as a general library, too.
Related: https://github.com/meteor/meteor/issues/7617
This is probably both easy and hard. It is easy conceptually, but there might be some tricky details to make it work well.
Also, there is a difference between supporting changing one connection of the app, or supporting multiple connections to multiple servers at the same time. Probably if one uses the app with multiple servers, you want to be connected to all of them at the same time to get notifications for all servers. Or at least get notifications for all servers, you might not need to be really connected to all servers for that, no?