From b0993481f7c412f63e912ebca267c9f4bcd5ddcd Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sat, 17 Jun 2017 18:44:10 +0200 Subject: [PATCH] Fix: propagate event to Socket --- src/Observer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Observer.js b/src/Observer.js index 7983822..e1afdcc 100755 --- a/src/Observer.js +++ b/src/Observer.js @@ -18,7 +18,10 @@ export default class{ } onEvent(){ + var super_onevent = this.Socket.onevent; this.Socket.onevent = (packet) => { + super_onevent.call(this.Socket, packet); + Emitter.emit(packet.data[0], packet.data[1]); if(this.store) this.passToStore('SOCKET_'+packet.data[0], [ ...packet.data.slice(1)])