Switch to native WebSocket in UI (#649)

Greatly improves Firefox performance
This commit is contained in:
Matt
2022-12-27 07:23:55 -08:00
committed by GitHub
parent 4382b8ea3f
commit 95c55f08cf
6 changed files with 242 additions and 300 deletions

View File

@@ -656,7 +656,7 @@ export default {
console.log("starting calibration with index " + calData.videoModeIndex);
}
this.$store.commit('currentPipelineIndex', -2);
this.$socket.send(this.$msgPack.encode(data));
this.$store.state.websocket.send(this.$msgPack.encode(data));
},
sendCalibrationFinish() {
console.log("finishing calibration for index " + this.$store.getters.currentCameraIndex);

View File

@@ -247,7 +247,7 @@ export default {
'cameraIndex': this.$store.state.currentCameraIndex
}
});
this.$socket.send(msg);
this.$store.state.websocket.send(msg);
this.$emit('update');
}
},