You can create and manage the Ably client external to your application, and use a state management solution like Redux to emit events. While this is probably more complicated, you could subscribe to channels, and raise events in your state management store, and have the store cascade these events to the other components in your application that are connected to the store.


It is difficult to give concrete advice around this topic, because applications can be built in different ways, but if you have any specific questions, please contact Ably supportĀ for more specific advice.