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

Loading…
Cancel
Save