[Vuejs]-How to listen to incoming request when configuring vue-socket.io globally in VueJS

0👍

the solution is to change import VueSocketIO from 'vue-socket.io' to import VueSocketIOExt from 'vue-socket.io-extended' and all off cases will work

difference is this.$socket.emit('changed') (vue-socket.io version) to this.$socket.client.emit('changed') (vue-socket.io-extended version)

https://www.npmjs.com/package/vue-socket.io-extended

Leave a comment