Changing default config value
sbernard31 opened this issue · 1 comments
sbernard31 commented
I don't know if this is doable with the current version. (Reading the code I guess it's not)
I would like to be able to set the default config of vue-sse
.
Example changing the default format to use :
// in plugins/sse.js
import VueSSE from 'vue-sse';
import Vue from "vue";
VueSSE.defaultconfig.format = 'json';
Vue.use(VueSSE);
sbernard31 commented
This feature was added in v2. the code looks like this :
// in plugins/sse.js
import VueSSE from 'vue-sse';
import Vue from "vue";
Vue.use(VueSSE, {
format: 'json',
});
So I guess we can close this bug.