includes bug fix from other PR re: callback

This commit is contained in:
David Vezzani 2020-07-27 12:38:01 -06:00
parent 64584724b6
commit f574194efd
2 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

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