installation added

pull/160/head
Metin Seylan 6 years ago
parent 15400d5b52
commit 92ee7c0291

@ -24,3 +24,25 @@
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');
```
Loading…
Cancel
Save