Browse Source

mongo stream

master
lefteris 4 years ago
parent
commit
848b05dc19
  1. 6
      src/components/doclive/config.js
  2. 11
      src/components/doclive/runLlo.vue

6
src/components/doclive/config.js

@ -1,6 +0,0 @@
var config = {};
//hardcoded token for testing
config.token = "c96e7fe836f9ffaf83e1fb7bc2b49819251057b0";
module.exports = config;

11
src/components/doclive/runLlo.vue

@ -332,7 +332,7 @@ export default {
async socketauthenticate() {
var tokentmp = store.getters["pipelineLLO/gettoken"];
// pernaw hardcoded to token
var test = "c96e7fe836f9ffaf83e1fb7bc2b49819251057b0";
var test = "cd2189ebbef3f0b43c5e73fac1cfb7e8cbe0d47c";
this.$socket.client.emit("authenticate", test);
},
async socketreconnect() {
@ -423,7 +423,7 @@ export default {
this.socketopen();
var logintoken = new URL(location.href).searchParams.get("token");
// hardcoded token
var hardtoken = "c96e7fe836f9ffaf83e1fb7bc2b49819251057b0";
var hardtoken = "cd2189ebbef3f0b43c5e73fac1cfb7e8cbe0d47c";
var log = store.dispatch("pipelineLLO/settoken", {
token: hardtoken,
});
@ -444,7 +444,7 @@ export default {
sockets: {
connect() {
//hardtoken
var hardtoken = "c96e7fe836f9ffaf83e1fb7bc2b49819251057b0";
var hardtoken = "cd2189ebbef3f0b43c5e73fac1cfb7e8cbe0d47c";
this.$socket.client.emit("authenticate", hardtoken);
//this.$socket.client.emit("authenticate", "logintoken");
@ -664,6 +664,11 @@ export default {
async message(val) {
console.log(" socket message " + JSON.stringify(val));
},
async logsend(val) {
console.log(" socket message " + JSON.stringify(val));
var log = val.log;
console.log(" LOG: " + JSON.parse(JSON.stringify(log)));
},
},
};
</script>

Loading…
Cancel
Save