Support multiple packet data argument

pull/125/head
lastmirage 7 years ago committed by GitHub
parent 8951667903
commit ec192d89b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save