Files
PhotonVision/chameleon-client/src/main.js
ori agranat 0881880b86 changed stream resolution list from ratio
- changed the resolution list to be the actual resolution instead of ratio 
- changed development port to be 5800
2019-11-05 21:15:10 +02:00

27 lines
728 B
JavaScript

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vuetify from './plugins/vuetify';
import VueNativeSock from 'vue-native-websocket';
import msgPack from 'msgpack5';
Vue.config.productionTip = false;
// Vue.use(VueNativeSock,'ws://' + location.host + '/websocket',{format: 'json'});
Vue.use(VueNativeSock, 'ws://' + location.hostname + ':5800/websocket');
Vue.prototype.$msgPack = msgPack(true);
Vue.mixin({
methods: {
handleInput(key, value) {
let msg = this.$msgPack.encode({[key]: value});
this.$socket.send(msg);
}
}
});
new Vue({
router,
store,
vuetify,
render: h => h(App)
}).$mount('#app');