From ec192d89b9f91c802617482e4e735696753b3575 Mon Sep 17 00:00:00 2001 From: lastmirage Date: Fri, 9 Mar 2018 00:42:22 +0900 Subject: [PATCH] Support multiple packet data argument --- src/Observer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Observer.js b/src/Observer.js index f6be963..514f93e 100755 --- a/src/Observer.js +++ b/src/Observer.js @@ -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)]) };