includes bug fix from other PR re: callback

pull/269/head
David Vezzani 5 years ago
parent 64584724b6
commit f574194efd

File diff suppressed because one or more lines are too long

@ -19,8 +19,12 @@ export default {
} }
} }
} else { } else {
this.$vueSocketIo.emitter.addListener(event, callback, this); this.sockets.subscribe = (event, callback) => {
this.$vueSocketIo.emitter.removeListener(event, this); this.$vueSocketIo.emitter.addListener(event, callback, this);
};
this.sockets.unsubscribe = (event) => {
this.$vueSocketIo.emitter.removeListener(event, this);
};
} }
}, },

Loading…
Cancel
Save