Multiple arguments added for emitting to store

This solves issue #51.
pull/52/head
Jasper Staats 8 years ago committed by GitHub
parent 682fbbc147
commit 5cb889fd72

@ -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;

Loading…
Cancel
Save