installation added

This commit is contained in:
Metin Seylan 2018-11-18 14:31:54 +03:00
parent 15400d5b52
commit 92ee7c0291

View file

@ -24,3 +24,25 @@
npm install vue-socket.io --save npm install vue-socket.io --save
``` ```
``` javascript
import Vue from 'vue'
import store from './store'
import App from './App.vue'
import VueSocketIO from 'vue-socket.io'
Vue.use(new VueSocketIO({
debug: true,
connection: 'http://metinseylan.com:1992',
vuex: {
store,
actionPrefix: 'SOCKET_',
mutationPrefix: 'SOCKET_'
}
}))
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app');
```