0
0
Fork 0

Add Vue-socket.io-extended to the site.

This commit is contained in:
Oliver-Akins 2020-12-23 12:41:09 -07:00
parent 4d598201c7
commit 31557e5ccf

View file

@ -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');