Merge pull request #52 from jeystaats/patch-1

Multiple arguments added for emitting to store
This commit is contained in:
Metin Seylan 2017-05-02 11:56:01 +03:00 committed by GitHub
commit d44a480584

View file

@ -21,7 +21,7 @@ export default class{
this.Socket.onevent = (packet) => { this.Socket.onevent = (packet) => {
Emitter.emit(packet.data[0], packet.data[1]); 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; let _this = this;