mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
Merge pull request #125 from lastmirage/master
Support multiple packet data argument
This commit is contained in:
commit
99810e131a
3 changed files with 27 additions and 27 deletions
|
@ -22,7 +22,7 @@ export default class{
|
|||
this.Socket.onevent = (packet) => {
|
||||
super_onevent.call(this.Socket, packet);
|
||||
|
||||
Emitter.emit(packet.data[0], packet.data[1]);
|
||||
Emitter.emit.apply(Emitter, packet.data);
|
||||
|
||||
if (this.store) this.passToStore('SOCKET_' + packet.data[0], [...packet.data.slice(1)])
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue