Skip to content

Error while using the library with Vuex in Quasar App #384

Closed
@sandeeppsmys

Description

@sandeeppsmys

Mutations are called when used with Store

My code looks like this..

[In App.vue]

import VueSocketio from 'vue-socket.io-extended'
import io from 'socket.io-client'
import store from './store'
Vue.use(VueSocketio, io(`http://${window.location.hostname}`), { store });

My mutation is like this in my store's mutations

SOCKET_message (state, data) {
    console.log(data)
  }

From the server, we are emitting ('message', data)
Please be noted that I am using Quasar and initializing it in App.vue. Works fine with components but not with Vuex store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions