mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
FIX: receiving staticEvents messages
This commit is contained in:
parent
fb8e1f96c1
commit
4daffda99b
2 changed files with 5 additions and 4 deletions
6
dist/vue-socketio.js
vendored
6
dist/vue-socketio.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue