Open ingles98 opened 4 years ago
Doesnt seem to work properly at the moment.
Workaround:
this.$wamp or Vue.Wamp returns the actual connection...you can use .on on that.
self.$wamp.on('status', ({status, lastStatus, details}) => {
console.log(status, lastStatus, details);
});
self.$wamp.on('opened', ({status, lastStatus, details}) => {
console.log(status, lastStatus, details);
});
self.$wamp.on('closed', ({status, lastStatus, details}) => {
console.log(status, lastStatus, details);
});
self.$wamp.on('retrying', ({status, lastStatus, details}) => {
console.log(status, lastStatus, details);
});
self.$wamp.on('reconnected', ({status, lastStatus, details}) => {
console.log(status, lastStatus, details);
});
I tried the aobve example, with console.log(status) on each callback but it is never called.