how can i access the socket instance inside the setup function in vue.js
component
i use vue-3-socket.io
in my main.js
import VueSocketIO from 'vue-3-socket.io'
import SocketIO from 'socket.io-client'
Vue.use(new VueSocketIO({
debug: true,
connection: SocketIO('http://metinseylan.com:1992', {}),
vuex: {
store,
actionPrefix: "SOCKET_",
mutationPrefix: "SOCKET_"
}
})
);
from how to use vue-3-socket.io with composition api in vue.js?
No comments:
Post a Comment