Add Vue-socket.io-extended to the site.
This commit is contained in:
parent
4d598201c7
commit
31557e5ccf
1 changed files with 9 additions and 5 deletions
|
|
@ -1,10 +1,14 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue';
|
||||||
import App from './App.vue'
|
import App from './App.vue';
|
||||||
import store from './store'
|
import store from './store';
|
||||||
|
import io from 'socket.io-client';
|
||||||
|
import VueSocketIOExt from 'vue-socket.io-extended';
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
|
Vue.use(VueSocketIOExt, io(`http://${window.location.hostname}:8081`));
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
store,
|
store,
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
}).$mount('#app')
|
}).$mount('#app');
|
||||||
Loading…
Add table
Add a link
Reference in a new issue