You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.
Router.prototype.middleware=function(){varself=this;vargen=compose(this.fns);returnfunction*router(next){debug('in router middleware');if(!self.fns.length){debug('router not exist');returnyield*next;}varcontext=this;varsocket=this.socket;// replace socket.onevent to start the routersocket._onevent=socket.onevent;socket.onevent=function(packet){varargs=packet.data||[];if(!args.length){debug('event args not exist');returnsocket._onevent(packet);}// <------ insertedif(null!=packet.id){debug('attaching ack callback to event');args.push(this.ack(packet.id));}// <------- endcontext.event=args[0];context.data=args.slice(1);co.wrap(gen).call(context,function(err){if(err)console.error(err.stack);//TODO: errorsocket._onevent(packet);});};yield*next;};};
The text was updated successfully, but these errors were encountered:
I just took over this project, and as part of v0.1.0 (#34), I'd like to be able to solve this bug. Could you be a little more specific about the problem you're having?
The text was updated successfully, but these errors were encountered: