FIX: receiving staticEvents messages

This commit is contained in:
nomnes 2019-01-25 05:56:34 +07:00 committed by nomnes
parent fb8e1f96c1
commit 4daffda99b
2 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -38,7 +38,7 @@ export default class VueSocketIOListenler {
this.onEvent(event, args)
};
VueSocketIOListenler.staticEvents.forEach(event => this.io.on(event, () => this.onEvent(event)))
VueSocketIOListenler.staticEvents.forEach(event => this.io.on(event, args => this.onEvent(event, args)))
}
/**
@ -47,5 +47,4 @@ export default class VueSocketIOListenler {
onEvent(event, args){
this.emitter.emit(event, args);
}
}