Hello,
i have an use case where the subscribe key is in a vuex store, and is not available at the initialisation of the plugin :
Vue.use(PubNubVue, {
subscribeKey: null,
ssl: true,
uuid: null
});
I'm then subscribing to the vuex store, and then i'm updating subscribeKey, but there is no easy method to do it.
i've done :
PubNubVue.getInstance().setUUID($store.state.pbnUUID).subscribeKey = $store.state.pbnSubscribeKey
it works but a method like this could be usefull :
PubNubVue.setConfig({
subscribeKey: $store.state.pbnSubscribeKey,
ssl: true,
uuid: $store.state.pbnUUID
})
thanks
Hello,
i have an use case where the subscribe key is in a vuex store, and is not available at the initialisation of the plugin :
I'm then subscribing to the vuex store, and then i'm updating subscribeKey, but there is no easy method to do it.
i've done :
it works but a method like this could be usefull :
thanks