You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2019/07/15 05:57:04 UTC

[GitHub] [dubbo-js] kusion opened a new issue #123: 有关dubbo2.js中间件问题

kusion opened a new issue #123: 有关dubbo2.js中间件问题
URL: https://github.com/apache/dubbo-js/issues/123
 
 
   在使用dubbo2.js中,根据文档使用了中间件,可以监听到Node的每一次请求发出。
   `const dubbo = new Dubbo<typeof service>({
     application: {name},
     service,
     dubboSetting,
     register,
   });
   
   dubbo.use(async (ctx: any, next: any) => {  
     console.log(ctx.request.methodName);
     await next();
   });`
   但是,如何通过中间件,监听Node端收到的Java服务端的响应呢?
   谢谢!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org