Issue logged by the community on chat . We need to simply add a warning to the offline listener if it already exists or try to allow registering more than one global. We have this problem in showcase - we need to listen to events in 2 different places and we cannot because of js-sdk.
Currently, offline listener can be passed only in config and we needed to hack showcase with proxy listener in order to implement that in view. This simple fix can improve user api.
h4. Idea
Instead of passing listener in config like follows; {code} config: {... listener: ...}. {code}
We can now have a method on OfflineClient that will allow multiple registrations
{code} client.registerGlobalListener() {code} |
|