changed a lot regarding rec state, etc.
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
// Vue.$moment.locale(locale);
|
||||
},
|
||||
sendWsMessage(msg) {
|
||||
console.log("sending msg: " + msg);
|
||||
this.$log.debug('sending msg: ' + msg);
|
||||
this.$socket.client.emit('my_event', msg);
|
||||
},
|
||||
connectWebsocket() {
|
||||
@@ -62,18 +62,18 @@
|
||||
},
|
||||
mounted() {
|
||||
this.$socket.client.on('my_response', function(msg) {
|
||||
console.log(msg);
|
||||
this.$log.debug(msg);
|
||||
});
|
||||
this.$socket.client.on('server_event', function(msg) {
|
||||
console.log("get server_event:");
|
||||
console.log(msg);
|
||||
this.$log.debug('get server_event:');
|
||||
this.$log.debug(msg);
|
||||
});
|
||||
this.$socket.client.on('connect', function(msg) {
|
||||
console.log("We are connected!");
|
||||
console.log(msg);
|
||||
this.$log.debug('We are connected!');
|
||||
this.$log.debug(msg);
|
||||
});
|
||||
|
||||
//this.$socket.$unsubscribe('even_name');
|
||||
// this.$socket.$unsubscribe('even_name');
|
||||
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user