I don't get your system working with nuxtjs + vuex.
If I use nuxtjs and make emits and subscriptions in a component, its work very well.
But If I try to do it with the store, I have no results.
plugin file:
import Vue from 'vue';
import { io } from 'socket.io-client';
import VueSocketIOExt from 'vue-socket.io-extended';
const socket = io('http://localhost:8080');
export default ({ store }) => {
Vue.use(VueSocketIOExt, socket, { actionPrefix: 'SOCKET_', store });
}
example store file (I tried many variants, not only this one)
Greetings,
I don't get your system working with nuxtjs + vuex. If I use nuxtjs and make emits and subscriptions in a component, its work very well. But If I try to do it with the store, I have no results.
plugin file:
example store file (I tried many variants, not only this one)