2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-17 05:49:38 +03:00

Multiple arguments added for emitting to store

This solves issue #51.
This commit is contained in:
Jasper Staats
2017-05-02 10:53:51 +02:00
committed by GitHub
parent 682fbbc147
commit 5cb889fd72
+1 -1
View File
@@ -21,7 +21,7 @@ export default class{
this.Socket.onevent = (packet) => {
Emitter.emit(packet.data[0], packet.data[1]);
if(this.store) this.passToStore('SOCKET_'+packet.data[0], packet.data[1])
if(this.store) this.passToStore('SOCKET_'+packet.data[0], [ ...packet.data.slice(1)])
};
let _this = this;